コード例 #1
0
ファイル: FTP.php プロジェクト: sasquatch-mc/php-ftp-wrapper
 /**
  * {@inheritDoc}
  */
 public function findFiles(Directory $directory)
 {
     return $this->manager->findFiles($directory);
 }
コード例 #2
0
 /**
  * Deletes files in a directory
  *
  * @param string $path /remote/path/
  */
 private function deleteFiles(Directory $path)
 {
     foreach ($this->manager->findFiles($path) as $file) {
         $this->wrapper->delete($file->getRealpath());
     }
 }