]> source.dussan.org Git - nextcloud-server.git/commitdiff
add option to clear the files in the static streamwrapper
authorRobin Appelman <icewind@owncloud.com>
Fri, 28 Jun 2013 17:41:28 +0000 (19:41 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 28 Jun 2013 17:41:28 +0000 (19:41 +0200)
lib/files/stream/staticstream.php

index 7725a6a5a0458c0a5b4930e8e70d47464caa5888..1e3879a4e82babb73522c619b7e953844f922dca 100644 (file)
@@ -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':