fix updating of shared files
This commit is contained in:
parent
a86d97295e
commit
bfabd247f4
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue