We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
path
1 parent f4e28d8 commit 25ca259Copy full SHA for 25ca259
1 file changed
src/Command/Uploads/ImportUploadsCommand.php
@@ -88,7 +88,11 @@ protected function perform()
88
throw new RuntimeException('You can only use this command with WordPress projects');
89
}
90
91
- $adapter = $this->getAdapter($projectType->getUploadsDirectoryPath($path));
+ if (empty($path)) {
92
+ $path = $projectType->getUploadsDirectoryPath($path);
93
+ }
94
+
95
+ $adapter = $this->getAdapter($path);
96
$environment = (string) $this->input->getStringOption('environment');
97
$filesystem = new Filesystem($adapter);
98
$size = $this->input->getNumericOption('size');
0 commit comments