This commit is contained in:
lexx committed 2023-10-04 13:32:30 +03:00
1 parent 215d238505
commit 1ca5f4e521
82 files changed
+519 -1889

No files matched your search

+5 -1
View File
@@ -39,7 +39,11 @@ class RebuildThumbnails extends Command
$filesDir = storage_path("app/public/" . $schema->path . "/");
$thumbDir = storage_path("app/public/thumbs/" . $schema->path . "/");
if (!file_exists($thumbDir)) {
mkdir($thumbDir);
make_dir_r($thumbDir);
}
if (!file_exists($filesDir)) {
make_dir_r($filesDir);
}
$filesDirIterator = new DirectoryIterator($filesDir);