/** * {@inheritDoc} */ public function findFiles(Directory $directory) { return $this->manager->findFiles($directory); }
/** * 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()); } }