diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index f2379b7be25..5cdce57482c 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -99,7 +99,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common { } public function mkdir($path) { - if ($path == '' || $path == '/' || !$this->is_writable($path)) { + if ($path == '' || $path == '/' || !$this->is_writable(dirname($path))) { return false; } else if ($source = $this->getSourcePath($path)) { $storage = OC_Filesystem::getStorage($source);