fixed import
This commit is contained in:
@@ -122,8 +122,7 @@ class Import extends Command
|
|||||||
|
|
||||||
if (is_dir($srcFilesDir)) {
|
if (is_dir($srcFilesDir)) {
|
||||||
$publicDisk = $fileService->loadPublicDisk();
|
$publicDisk = $fileService->loadPublicDisk();
|
||||||
$filesDir = $publicDisk->path("lucent");
|
$destFilesDir = $publicDisk->path("lucent/files");
|
||||||
$destFilesDir = $publicDisk->path("lucent");
|
|
||||||
|
|
||||||
// Remove existing files directory or create it if missing
|
// Remove existing files directory or create it if missing
|
||||||
if (is_dir($destFilesDir)) {
|
if (is_dir($destFilesDir)) {
|
||||||
@@ -134,7 +133,7 @@ class Import extends Command
|
|||||||
|
|
||||||
exec(
|
exec(
|
||||||
sprintf(
|
sprintf(
|
||||||
"cp -R %s %s",
|
"cp -R %s/* %s",
|
||||||
escapeshellarg($srcFilesDir),
|
escapeshellarg($srcFilesDir),
|
||||||
escapeshellarg($destFilesDir),
|
escapeshellarg($destFilesDir),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user