aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/streamwrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/streamwrapper.php')
-rw-r--r--apps/files_external/lib/streamwrapper.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_external/lib/streamwrapper.php b/apps/files_external/lib/streamwrapper.php
index 7a1991d4f04..e484325e2fb 100644
--- a/apps/files_external/lib/streamwrapper.php
+++ b/apps/files_external/lib/streamwrapper.php
@@ -25,8 +25,9 @@ abstract class StreamWrapper extends Common {
$this->unlink($path . '/' . $file);
}
}
- $success = rmdir($this->constructUrl($path));
- clearstatcache();
+ $url = $this->constructUrl($path);
+ $success = rmdir($url);
+ clearstatcache(false, $url);
return $success;
} else {
return false;
@@ -46,8 +47,11 @@ abstract class StreamWrapper extends Common {
}
public function unlink($path) {
- $success = unlink($this->constructUrl($path));
- clearstatcache();
+ $url = $this->constructUrl($path);
+ $success = unlink($url);
+ // normally unlink() is supposed to do this implicitly,
+ // but doing it anyway just to be sure
+ clearstatcache(false, $url);
return $success;
}