Skip to content

Commit 25ca259

Browse files
committed
fix: only use relative path to uploads directory when no path is given
1 parent f4e28d8 commit 25ca259

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Command/Uploads/ImportUploadsCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ protected function perform()
8888
throw new RuntimeException('You can only use this command with WordPress projects');
8989
}
9090

91-
$adapter = $this->getAdapter($projectType->getUploadsDirectoryPath($path));
91+
if (empty($path)) {
92+
$path = $projectType->getUploadsDirectoryPath($path);
93+
}
94+
95+
$adapter = $this->getAdapter($path);
9296
$environment = (string) $this->input->getStringOption('environment');
9397
$filesystem = new Filesystem($adapter);
9498
$size = $this->input->getNumericOption('size');

0 commit comments

Comments
 (0)