nextcloud/lib/filestorage/temporary.php

18 lines
355 B
PHP
Raw Normal View History

<?php
/**
* local storage backnd in temporary folder for testing purpores
*/
class OC_Filestorage_Temporary extends OC_Filestorage_Local{
2012-09-07 17:22:01 +04:00
public function __construct($arguments) {
$this->datadir=OC_Helper::tmpFolder();
}
2012-09-07 17:22:01 +04:00
public function cleanUp() {
OC_Helper::rmdirr($this->datadir);
}
2012-09-07 17:22:01 +04:00
public function __destruct() {
$this->cleanUp();
}
}