fix(LocalFileVolume): add missing directory creation command for workdir in saveStorageOnServer method

This commit is contained in:
Andras Bacsai
2025-09-09 08:56:00 +02:00
parent 23fb43bb96
commit 45ca76ed1c

View File

@@ -119,6 +119,7 @@ class LocalFileVolume extends BaseModel
$commands = collect([]);
if ($this->is_directory) {
$commands->push("mkdir -p $this->fs_path > /dev/null 2>&1 || true");
$commands->push("mkdir -p $workdir > /dev/null 2>&1 || true");
$commands->push("cd $workdir");
}
if (str($this->fs_path)->startsWith('.') || str($this->fs_path)->startsWith('/') || str($this->fs_path)->startsWith('~')) {