summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index d88b30c2f68..530d50139b4 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -474,7 +474,11 @@ class OC_Filesystem{
}
static public function removeETagHook($params) {
- $path=$params['path'];
+ if (isset($params['path'])) {
+ $path=$params['path'];
+ } else {
+ $path=$params['oldpath'];
+ }
OC_Connector_Sabre_Node::removeETagPropertyForPath($path);
OC_Connector_Sabre_Node::removeETagPropertyForPath(dirname($path));
}