File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515class File extends Node implements \OCP \Files \File {
1616 #[Override]
17- protected function createNonExistingNode (string $ path ): \ OCP \ Files \ Node {
17+ protected function createNonExistingNode (string $ path ): NonExistingFile {
1818 return new NonExistingFile ($ this ->root , $ this ->view , $ path );
1919 }
2020
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Folder extends Node implements \OCP\Files\Folder {
3737 private bool $ wasDeleted = false ;
3838
3939 #[Override]
40- protected function createNonExistingNode (string $ path ): INode {
40+ protected function createNonExistingNode (string $ path ): NonExistingFolder {
4141 return new NonExistingFolder ($ this ->root , $ this ->view , $ path );
4242 }
4343
@@ -101,7 +101,7 @@ public function nodeExists(string $path): bool {
101101 }
102102
103103 #[Override]
104- public function newFolder (string $ path ): \ OCP \ Files \ Folder {
104+ public function newFolder (string $ path ): self {
105105 if ($ this ->checkPermissions (Constants::PERMISSION_CREATE )) {
106106 $ fullPath = $ this ->getFullPath ($ path );
107107 $ nonExisting = new NonExistingFolder ($ this ->root , $ this ->view , $ fullPath );
@@ -132,7 +132,7 @@ public function newFolder(string $path): \OCP\Files\Folder {
132132 }
133133
134134 #[Override]
135- public function newFile (string $ path , $ content = null ): \ OCP \ Files \ File {
135+ public function newFile (string $ path , $ content = null ): File {
136136 if ($ path === '' ) {
137137 throw new NotPermittedException ('Could not create as provided path is empty ' );
138138 }
Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ public function nodeExists(string $path): bool {
142142 }
143143
144144 #[Override]
145- public function newFolder (string $ path ): \ OCP \ Files \ Folder {
145+ public function newFolder (string $ path ): Folder {
146146 throw new NotFoundException ();
147147 }
148148
149149 #[Override]
150- public function newFile (string $ path , $ content = null ): \ OCP \ Files \ File {
150+ public function newFile (string $ path , $ content = null ): File {
151151 throw new NotFoundException ();
152152 }
153153
You can’t perform that action at this time.
0 commit comments