From 156e72a0c465bc70f079933a6c5b376ca6552caa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 28 Jun 2013 19:41:28 +0200 Subject: [PATCH] add option to clear the files in the static streamwrapper --- lib/files/stream/staticstream.php | 4 ++++ 1 file changed, 4 insertions(+) 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': -- 2.39.5