summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-19 00:02:40 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-19 00:02:40 -0500
commit8ca30d244c19b33e7e3b0da247b70160a3acc44f (patch)
treefcaca90378a044e24628b23cf6de44fdea64c0ff /apps/files_sharing/lib
parentcd8d8360b0bcc07e22c4c9b86252ef1676b123dc (diff)
downloadnextcloud-server-8ca30d244c19b33e7e3b0da247b70160a3acc44f.tar.gz
nextcloud-server-8ca30d244c19b33e7e3b0da247b70160a3acc44f.zip
Implement getETag() in shared storage
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index c8756af8ed7..b0be6843c56 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -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;
}
}