diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-08 20:47:00 +0400 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-08 20:48:26 +0400 |
commit | 706bb3ccd654f76c0a6c5b7874fcc1e288b13f54 (patch) | |
tree | 727e84b0c4337abd8855f77f98868bdd9eb4133e /lib/connector | |
parent | 72c38686449a8887d8441377a11f0bfc910bc31f (diff) |
move ETag generation to storage backends
Diffstat (limited to 'lib/connector')
-rw-r--r-- | lib/connector/sabre/node.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php index ebc9e539625..d0ab0c24988 100644 --- a/lib/connector/sabre/node.php +++ b/lib/connector/sabre/node.php @@ -211,26 +211,12 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr } /** - * Creates a ETag for this path. - * @param string $path Path of the file - * @return string|null Returns null if the ETag can not effectively be determined - */ - static protected function createETag($path) { - if(self::$ETagFunction) { - $hash = call_user_func(self::$ETagFunction, $path); - return $hash; - }else{ - return uniqid('', true); - } - } - - /** * Returns the ETag surrounded by double-quotes for this path. * @param string $path Path of the file * @return string|null Returns null if the ETag can not effectively be determined */ static public function getETagPropertyForPath($path) { - $tag = self::createETag($path); + $tag = \OC\Files\Filesystem::getETag($path); if (empty($tag)) { return null; } |