fix updating of shared files

This commit is contained in:
Bjoern Schiessle 2014-04-09 18:00:00 +02:00
parent a86d97295e
commit bfabd247f4
1 changed files with 3 additions and 7 deletions

View File

@ -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) {