Lines Matching refs:path

38      * @param WikiPath $path
40 function exists(Path $path): bool argument
42 return FileSystems::exists($path->toLocalPath());
46 * @param WikiPath $path
49 function getContent(Path $path): string argument
51 $localPath = $path->toLocalPath();
56 * @param WikiPath $path
59 function getModifiedTime(Path $path): DateTime argument
61 return FileSystems::getModifiedTime($path->toLocalPath());
65 * @param WikiPath $path
69 public function getCreationTime(Path $path): DateTime argument
71 return FileSystems::getCreationTime($path->toLocalPath());
75 * @param WikiPath $path
77 public function delete(Path $path) argument
79 FileSystems::delete($path->toLocalPath());
83 * @param WikiPath $path
85 public function getSize(Path $path) argument
87 return FileSystems::getSize($path->toLocalPath());
101 * @param WikiPath $path
104 public function isDirectory(Path $path): bool argument
106 return WikiPath::isNamespacePath($path->toAbsoluteId());
111 * @param WikiPath $path
115 public function getChildren(Path $path, string $type = null): array argument
118 $children = LocalFileSystem::getOrCreate()->getChildren($path->toLocalPath(), $type);
133 * @param WikiPath $path
138 public function closest(Path $path, string $lastFullName): Path argument
140 return FileSystems::closest($path->toLocalPath(), $lastFullName);
144 * @param WikiPath $path
147 public function createRegularFile(Path $path) argument
149 FileSystems::createRegularFile($path->toLocalPath());
153 * @param WikiPath $path
157 public function setContent(Path $path, string $content) argument
159 FileSystems::setContent($path->toLocalPath(), $content);