nonexistingfile.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * Copyright (c) 2013 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 OC\Files\Node;
  9. use OCP\Files\NotFoundException;
  10. class NonExistingFile extends File {
  11. /**
  12. * @param string $newPath
  13. * @throws \OCP\Files\NotFoundException
  14. */
  15. public function rename($newPath) {
  16. throw new NotFoundException();
  17. }
  18. public function delete() {
  19. throw new NotFoundException();
  20. }
  21. public function copy($newPath) {
  22. throw new NotFoundException();
  23. }
  24. public function touch($mtime = null) {
  25. throw new NotFoundException();
  26. }
  27. public function getId() {
  28. throw new NotFoundException();
  29. }
  30. public function stat() {
  31. throw new NotFoundException();
  32. }
  33. public function getMTime() {
  34. throw new NotFoundException();
  35. }
  36. public function getSize() {
  37. throw new NotFoundException();
  38. }
  39. public function getEtag() {
  40. throw new NotFoundException();
  41. }
  42. public function getPermissions() {
  43. throw new NotFoundException();
  44. }
  45. public function isReadable() {
  46. throw new NotFoundException();
  47. }
  48. public function isUpdateable() {
  49. throw new NotFoundException();
  50. }
  51. public function isDeletable() {
  52. throw new NotFoundException();
  53. }
  54. public function isShareable() {
  55. throw new NotFoundException();
  56. }
  57. public function getContent() {
  58. throw new NotFoundException();
  59. }
  60. public function putContent($data) {
  61. throw new NotFoundException();
  62. }
  63. public function getMimeType() {
  64. throw new NotFoundException();
  65. }
  66. public function fopen($mode) {
  67. throw new NotFoundException();
  68. }
  69. }