fix(LocalFileVolume): add missing directory creation command for workdir in saveStorageOnServer method
This commit is contained in:
parent
23fb43bb96
commit
45ca76ed1c
1 changed files with 1 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ public function saveStorageOnServer()
|
||||||
$commands = collect([]);
|
$commands = collect([]);
|
||||||
if ($this->is_directory) {
|
if ($this->is_directory) {
|
||||||
$commands->push("mkdir -p $this->fs_path > /dev/null 2>&1 || true");
|
$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");
|
$commands->push("cd $workdir");
|
||||||
}
|
}
|
||||||
if (str($this->fs_path)->startsWith('.') || str($this->fs_path)->startsWith('/') || str($this->fs_path)->startsWith('~')) {
|
if (str($this->fs_path)->startsWith('.') || str($this->fs_path)->startsWith('/') || str($this->fs_path)->startsWith('~')) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue