/**
  * {@inheritdoc}
  */
 protected function getFiles($path)
 {
     $result = array();
     /**
      * @var \SplFileInfo $file
      */
     foreach ($this->flysystem->listContents($path, true) as $file) {
         if ($file['type'] == 'file') {
             $file = File::fromFlysystemMetadata($file, $path);
             $result[$file->getRelativePath()] = $file;
         }
     }
     return $result;
 }