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