Home
last modified time | relevance | path

Searched refs:filesystem (Results 1 – 25 of 31) sorted by relevance

12

/webtrees/app/Services/
H A DHousekeepingService.php233 * @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);
[all …]
H A DUpgradeService.php141 * @param FilesystemOperator $filesystem
148 public function downloadFile(string $url, FilesystemOperator $filesystem, string $path): int argument
179 $filesystem->writeStream($path, $tmp);
211 * @param FilesystemOperator $filesystem
217 …public function cleanFiles(FilesystemOperator $filesystem, Collection $folders_to_clean, Collectio… argument
221 … foreach ($filesystem->listContents($folder_to_clean, FilesystemReader::LIST_DEEP) as $path) {
224 $filesystem->delete($path['path']);
H A DAdminService.php242 * @param FilesystemOperator $filesystem
246 public function gedcomFiles(FilesystemOperator $filesystem): Collection argument
249 $files = $filesystem->listContents('')
250 ->filter(static function (StorageAttributes $attributes) use ($filesystem) {
255 $stream = $filesystem->readStream($attributes->path());
H A DMediaFileService.php276 * @param FilesystemOperator $filesystem $filesystem to search
282 …public function allFilesOnDisk(FilesystemOperator $filesystem, string $folder, bool $subfolders): … argument
285 $files = $filesystem
/webtrees/app/Factories/
H A DImageFactory.php82 …public function fileResponse(FilesystemOperator $filesystem, string $path, bool $download): Respon… argument
86 $mime_type = $filesystem->mimeType(path: $path);
93 …return $this->imageResponse(data: $filesystem->read(location: $path), mime_type: $mime_type, filen…
104 FilesystemOperator $filesystem, argument
111 $mime_type = $filesystem->mimeType(path: $path);
112 $image = $this->imageManager()->read(input: $filesystem->readStream($path));
138 $filesystem = $media_file->media()->tree()->mediaFilesystem();
142 return $this->fileResponse(filesystem: $filesystem, path: $path, download: $download);
147 $image = $this->imageManager()->read(input: $filesystem->readStream($path));
178 $filesystem = $media_file->media()->tree()->mediaFilesystem();
[all …]
/webtrees/app/Http/RequestHandlers/
H A DAdminMediaFileThumbnail.php55 $filesystem = Registry::filesystem()->data();
58 $media_folders = $this->media_file_service->allMediaFolders($filesystem)->all();
62 … return Registry::imageFactory()->thumbnailResponse($filesystem, $path, 120, 120, 'contain');
H A DAdminMediaFileDownload.php55 $filesystem = Registry::filesystem()->data();
58 $media_folders = $this->media_file_service->allMediaFolders($filesystem)->all();
62 return Registry::imageFactory()->fileResponse($filesystem, $path, false);
H A DUpgradeWizardStep.php176 $root_filesystem = Registry::filesystem()->root();
210 $data_filesystem = Registry::filesystem()->data();
226 $root_filesystem = Registry::filesystem()->root();
276 … $source_filesystem = Registry::filesystem()->root(self::UPGRADE_FOLDER . self::ZIP_FILE_PREFIX);
277 $root_filesystem = Registry::filesystem()->root();
H A DEditMediaFileAction.php115 $filesystem = $media->tree()->mediaFilesystem();
120 if ($old !== $new && !$media_file->isExternal() && $filesystem->fileExists($old)) {
122 $file_exists = $filesystem->fileExists($old);
126 $filesystem->move($old, $new);
H A DImportGedcomPage.php61 $data_filesystem = Registry::filesystem()->data();
62 $data_folder = Registry::filesystem()->dataName();
H A DMapDataImportPage.php53 $data_filesystem = Registry::filesystem()->data();
54 $data_filesystem_name = Registry::filesystem()->dataName();
H A DManageMediaPage.php57 $data_filesystem = Registry::filesystem()->data();
58 $data_filesystem_name = Registry::filesystem()->dataName();
H A DControlPanel.php135 $filesystem = new Filesystem(new LocalFilesystemAdapter(Webtrees::ROOT_DIR));
136 $files_to_delete = $this->housekeeping_service->deleteOldWebtreesFiles($filesystem);
143 …$gedcom_file_count = $this->admin_service->gedcomFiles(Registry::filesystem()->data())->coun…
H A DManageMediaData.php94 $data_filesystem = Registry::filesystem()->data();
133 $mime_type = Registry::filesystem()->data()->mimeType($path);
H A DManageMediaAction.php54 $data_filesystem = Registry::filesystem()->data();
H A DUploadMediaPage.php61 $data_filesystem = Registry::filesystem()->data();
H A DSitePreferencesPage.php69 'data_folder' => Registry::filesystem()->dataName(),
H A DCleanDataFolder.php61 $data_filesystem = Registry::filesystem()->data();
H A DDeletePath.php67 $data_filesystem = Registry::filesystem()->data();
H A DManageTrees.php67 …$gedcom_file_count = $this->admin_service->gedcomFiles(Registry::filesystem()->data())->coun…
H A DExportGedcomServer.php69 $data_filesystem = Registry::filesystem()->data();
H A DUploadMediaAction.php70 $data_filesystem = Registry::filesystem()->data();
/webtrees/app/Contracts/
H A DImageFactoryInterface.php35 …public function fileResponse(FilesystemOperator $filesystem, string $path, bool $download): Respon… argument
41 FilesystemOperator $filesystem, argument
/webtrees/app/Http/Middleware/
H A DDoHousekeeping.php75 $this->runHousekeeping(Registry::filesystem()->data(), Registry::filesystem()->root());
/webtrees/
H A Dcomposer.lock1353 "illuminate/filesystem": "Required to use the migrations (^11.0).",
1473 "illuminate/filesystem": "Required to use the composer class (^11.0).",
1979 "filesystem",
2028 "description": "Local filesystem adapter for Flysystem.",
2033 "filesystem",
2075 "description": "Path prefixing filesystem adapter for Flysystem.",
2078 "filesystem",
2123 "description": "ZIP filesystem adapter for Flysystem.",
2128 "filesystem",
3839 "symfony/filesystem": "^6.4|^7.0",
[all …]

12