Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-08 20:47:00 +0400
committerRobin Appelman <icewind@owncloud.com>2012-11-08 20:48:26 +0400
commit706bb3ccd654f76c0a6c5b7874fcc1e288b13f54 (patch)
tree727e84b0c4337abd8855f77f98868bdd9eb4133e /lib/connector
parent72c38686449a8887d8441377a11f0bfc910bc31f (diff)
move ETag generation to storage backends
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/node.php16
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;
}