temporary.php 352 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * local storage backnd in temporary folder for testing purpores
  4. */
  5. class OC_Filestorage_Temporary extends OC_Filestorage_Local{
  6. public function __construct($arguments){
  7. $this->datadir=OC_Helper::tmpFolder();
  8. }
  9. public function cleanUp(){
  10. OC_Helper::rmdirr($this->datadir);
  11. }
  12. public function __destruct(){
  13. $this->cleanUp();
  14. }
  15. }