diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-06-28 19:41:28 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-06-28 19:41:28 +0200 |
commit | 156e72a0c465bc70f079933a6c5b376ca6552caa (patch) | |
tree | ef4cc1b2676771a84595001c7b1c769054d99f6d | |
parent | 6ddfe2029c8db19ae1779915b9c14836bbbabcd0 (diff) | |
download | nextcloud-server-156e72a0c465bc70f079933a6c5b376ca6552caa.tar.gz nextcloud-server-156e72a0c465bc70f079933a6c5b376ca6552caa.zip |
add option to clear the files in the static streamwrapper
-rw-r--r-- | lib/files/stream/staticstream.php | 4 |
1 files changed, 4 insertions, 0 deletions
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': |