diff --git a/lib/files/view.php b/lib/files/view.php index 8a37a0bcc62f9a7869a286fbcfc92c92c8fa6c2b..d0d473766cc3d7f5074124f7017d5aa5f7624872 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -375,7 +375,8 @@ class View { if ($this->is_dir($path1)) { $result = $this->copy($path1, $path2); if ($result === true) { - $result = $this->deleteAll($path1); + list($storage1, $internalPath1) = Filesystem::resolvePath($absolutePath1 . $postFix1); + $result = $storage1->deleteAll($internalPath1); } } else { $source = $this->fopen($path1 . $postFix1, 'r');