nonexistingfolder.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 NonExistingFolder extends Folder {
  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 get($path) {
  58. throw new NotFoundException();
  59. }
  60. public function getDirectoryListing() {
  61. throw new NotFoundException();
  62. }
  63. public function nodeExists($path) {
  64. return false;
  65. }
  66. public function newFolder($path) {
  67. throw new NotFoundException();
  68. }
  69. public function newFile($path) {
  70. throw new NotFoundException();
  71. }
  72. public function search($pattern) {
  73. throw new NotFoundException();
  74. }
  75. public function searchByMime($mime) {
  76. throw new NotFoundException();
  77. }
  78. public function getById($id) {
  79. throw new NotFoundException();
  80. }
  81. public function getFreeSpace() {
  82. throw new NotFoundException();
  83. }
  84. public function isCreatable() {
  85. throw new NotFoundException();
  86. }
  87. }