From bfabd247f42f306720d154c3a84285afed589033 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle <schiessle@owncloud.com> Date: Wed, 9 Apr 2014 18:00:00 +0200 Subject: [PATCH] fix updating of shared files --- apps/files_sharing/lib/sharedstorage.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index c90f6d71f7..39d0140008 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -144,13 +144,9 @@ class Shared extends \OC\Files\Storage\Common { } public function is_dir($path) { - if ($path == '' || $path == '/') { - return true; - } else if ($source = $this->getSourcePath($path)) { - list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); - return $storage->is_dir($internalPath); - } - return false; + $source = $this->getSourcePath($path); + list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); + return $storage->is_dir($internalPath); } public function is_file($path) { -- GitLab