Implement getETag() in shared storage

This commit is contained in:
Michael Gapczynski 2013-01-19 00:02:40 -05:00
parent cd8d8360b0
commit 8ca30d244c
1 changed files with 8 additions and 1 deletions

View File

@ -431,7 +431,14 @@ class Shared extends \OC\Files\Storage\Common {
}
public function getETag($path) {
if ($path == '') {
return parent::getETag($path);
}
if ($source = $this->getSourcePath($path)) {
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($source);
return $storage->getETag($internalPath);
}
return null;
}
}