itempmanager.php 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OCP;
  9. interface ITempManager {
  10. /**
  11. * Create a temporary file and return the path
  12. *
  13. * @param string $postFix
  14. * @return string
  15. */
  16. public function getTemporaryFile($postFix = '');
  17. /**
  18. * Create a temporary folder and return the path
  19. *
  20. * @param string $postFix
  21. * @return string
  22. */
  23. public function getTemporaryFolder($postFix = '');
  24. /**
  25. * Remove the temporary files and folders generated during this request
  26. */
  27. public function clean();
  28. /**
  29. * Remove old temporary files and folders that were failed to be cleaned
  30. */
  31. public function cleanOld();
  32. }