123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace OC\Files\Storage;
- class Temporary extends Local {
- public function __construct($arguments = null) {
- parent::__construct(['datadir' => \OC::$server->getTempManager()->getTemporaryFolder()]);
- }
- public function cleanUp() {
- \OC_Helper::rmdirr($this->datadir);
- }
- public function __destruct() {
- parent::__destruct();
- $this->cleanUp();
- }
- public function getDataDir() {
- return $this->datadir;
- }
- }
|