From: Robin Appelman Date: Fri, 28 Jun 2013 17:41:28 +0000 (+0200) Subject: add option to clear the files in the static streamwrapper X-Git-Tag: v6.0.0alpha2~574^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=156e72a0c465bc70f079933a6c5b376ca6552caa;p=nextcloud-server.git add option to clear the files in the static streamwrapper --- diff --git a/lib/files/stream/staticstream.php b/lib/files/stream/staticstream.php index 7725a6a5a04..1e3879a4e82 100644 --- a/lib/files/stream/staticstream.php +++ b/lib/files/stream/staticstream.php @@ -26,6 +26,10 @@ class StaticStream { public function stream_flush() { } + public static function clear() { + self::$data = array(); + } + public function stream_open($path, $mode, $options, &$opened_path) { switch ($mode[0]) { case 'r':