diff --git a/src/Commands/Import.php b/src/Commands/Import.php index eab8ce5..a724a92 100644 --- a/src/Commands/Import.php +++ b/src/Commands/Import.php @@ -122,8 +122,7 @@ class Import extends Command if (is_dir($srcFilesDir)) { $publicDisk = $fileService->loadPublicDisk(); - $filesDir = $publicDisk->path("lucent"); - $destFilesDir = $publicDisk->path("lucent"); + $destFilesDir = $publicDisk->path("lucent/files"); // Remove existing files directory or create it if missing if (is_dir($destFilesDir)) { @@ -134,7 +133,7 @@ class Import extends Command exec( sprintf( - "cp -R %s %s", + "cp -R %s/* %s", escapeshellarg($srcFilesDir), escapeshellarg($destFilesDir), ),