Small fixed for file mover artisan command

This commit is contained in:
snipe 2020-08-28 14:10:28 -07:00
parent 24be73f76b
commit bc5a82e734
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -20,7 +20,7 @@ class MoveUploadsToNewDisk extends Command
*
* @var string
*/
protected $description = 'This will move your uploaded files to whatever your current disk is.';
protected $description = 'This will move your locally uploaded files to whatever your current disk is.';
/**
* Create a new command instance.
@ -42,7 +42,7 @@ class MoveUploadsToNewDisk extends Command
if (config('filesystems.default')=='local') {
$this->error('Your current disk is set to local so we cannot proceed.');
$this->warn("Please configure your .env settings for S3. \nChange your PUBLIC_FILESYSTEM_DISK value to 's3_public' and your PRIVATE_FILESYSTEM_DISK to s3_public.");
$this->warn("Please configure your .env settings for S3. \nChange your PUBLIC_FILESYSTEM_DISK value to 's3_public' and your PRIVATE_FILESYSTEM_DISK to s3_private.");
return false;
}
$delete_local = $this->argument('delete_local');
@ -84,7 +84,7 @@ class MoveUploadsToNewDisk extends Command
}
$logos = glob('public/uploads'."/logo*.*");
$logos = glob('public/uploads'."/setting*.*");
$this->info("\nThere are ".count($logos).' files that might be logos.');
$type_count = 0;
@ -102,6 +102,7 @@ class MoveUploadsToNewDisk extends Command
$private_uploads['imports'] = glob('storage/private_uploads/imports'."/*.*");
$private_uploads['licenses'] = glob('storage/private_uploads/licenses'."/*.*");
$private_uploads['users'] = glob('storage/private_uploads/users'."/*.*");
$private_uploads['backups'] = glob('storage/private_uploads/users'."/*.*");
foreach($private_uploads as $private_type => $private_upload)