diff --git a/lib/private/files/view.php b/lib/private/files/view.php index c01763cdad..c21ec88ae0 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -280,6 +280,11 @@ class View { } public function isDeletable($path) { + $absolutePath = $this->getAbsolutePath($path); + $mount = Filesystem::getMountManager()->find($absolutePath); + if ($mount->getInternalPath($absolutePath) === '') { + return $mount instanceof MoveableMount; + } return $this->basicOperation('isDeletable', $path); }