Lines Matching refs:filesystem
233 * @param FilesystemOperator $filesystem
237 public function deleteOldWebtreesFiles(FilesystemOperator $filesystem): array argument
242 if (!$this->deleteFileOrFolder($filesystem, $path)) {
253 * @param FilesystemOperator $filesystem
259 public function deleteOldFiles(FilesystemOperator $filesystem, string $path, int $max_age): void argument
263 $list = $filesystem->listContents($path, FilesystemReader::LIST_DEEP);
270 $this->deleteFileOrFolder($filesystem, $metadata['path']);
303 * @param FilesystemOperator $filesystem
308 private function deleteFileOrFolder(FilesystemOperator $filesystem, string $path): bool argument
311 $filesystem->delete($path);
314 $filesystem->deleteDirectory($path);