mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 10:37:27 -04:00
17 lines
355 B
PHP
17 lines
355 B
PHP
<?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();
|
|
}
|
|
}
|