Skip to content
Snippets Groups Projects
Commit bfabd247 authored by Björn Schießle's avatar Björn Schießle
Browse files

fix updating of shared files

parent a86d9729
Branches
No related tags found
No related merge requests found
...@@ -144,14 +144,10 @@ class Shared extends \OC\Files\Storage\Common { ...@@ -144,14 +144,10 @@ class Shared extends \OC\Files\Storage\Common {
} }
public function is_dir($path) { public function is_dir($path) {
if ($path == '' || $path == '/') { $source = $this->getSourcePath($path);
return true;
} else if ($source = $this->getSourcePath($path)) {
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source); list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
return $storage->is_dir($internalPath); return $storage->is_dir($internalPath);
} }
return false;
}
public function is_file($path) { public function is_file($path) {
if ($source = $this->getSourcePath($path)) { if ($source = $this->getSourcePath($path)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment