Merge remote-tracking branch 'origin/develop'
All checks were successful
timw4mail/HummingBirdAnimeClient/master This commit looks good
All checks were successful
timw4mail/HummingBirdAnimeClient/master This commit looks good
This commit is contained in:
commit
77ffd46cd8
@ -32,19 +32,19 @@ class ClearThumbnails extends BaseCommand {
|
|||||||
$imgDir = realpath(__DIR__ . '/../../public/images');
|
$imgDir = realpath(__DIR__ . '/../../public/images');
|
||||||
|
|
||||||
$paths = [
|
$paths = [
|
||||||
|
'anime/*.jpg',
|
||||||
|
'anime/*.png',
|
||||||
|
'anime/*.webp',
|
||||||
'avatars/*.gif',
|
'avatars/*.gif',
|
||||||
'avatars/*.jpg',
|
'avatars/*.jpg',
|
||||||
'avatars/*.png',
|
'avatars/*.png',
|
||||||
'avatars/*.webp',
|
'avatars/*.webp',
|
||||||
'anime/*.jpg',
|
|
||||||
'anime/*.png',
|
|
||||||
'anime/*.webp',
|
|
||||||
'manga/*.jpg',
|
|
||||||
'manga/*.png',
|
|
||||||
'manga/*.webp',
|
|
||||||
'characters/*.jpg',
|
'characters/*.jpg',
|
||||||
'characters/*.png',
|
'characters/*.png',
|
||||||
'characters/*.webp',
|
'characters/*.webp',
|
||||||
|
'manga/*.jpg',
|
||||||
|
'manga/*.png',
|
||||||
|
'manga/*.webp',
|
||||||
'people/*.jpg',
|
'people/*.jpg',
|
||||||
'people/*.png',
|
'people/*.png',
|
||||||
'people/*.webp',
|
'people/*.webp',
|
||||||
@ -52,7 +52,7 @@ class ClearThumbnails extends BaseCommand {
|
|||||||
|
|
||||||
foreach($paths as $path)
|
foreach($paths as $path)
|
||||||
{
|
{
|
||||||
$cmd = "rm -rf {$imgDir}/{$path}";
|
$cmd = "find {$imgDir} -path \"*/{$path}\" | xargs rm -f";
|
||||||
exec($cmd);
|
exec($cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user