From d25a9a118f7824a72f193d57373355e51323f118 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 25 Aug 2014 14:06:48 +0200 Subject: Check if a folder is deletable before we try to recursively delete it --- apps/files_external/lib/swift.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_external/lib/swift.php') diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index 1c56d180e2f..11186a9f394 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -187,7 +187,7 @@ class Swift extends \OC\Files\Storage\Common { public function rmdir($path) { $path = $this->normalizePath($path); - if (!$this->is_dir($path)) { + if (!$this->is_dir($path) or !$this->isDeletable($path)) { return false; } -- cgit v1.2.3