summaryrefslogtreecommitdiffstats
path: root/lib/filestorage/temporary.php
blob: 8f2373c8e95fe80654a41e65e0d8305f9045d2e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * local storage backnd in temporary folder for testing purpores
 */
class OC_Filestorage_Temporary extends OC_Filestorage_Local{
	public function __construct($arguments){
		$this->datadir=OC_Helper::tmpFolder();
	}

	public function cleanUp(){
		OC_Helper::rmdirr($this->datadir);
	}

	public function __destruct(){
		$this->cleanUp();
	}
}