Lines Matching defs:path

38      * @param WikiPath $path
40 function exists(Path $path): bool
42 return FileSystems::exists($path->toLocalPath());
46 * @param WikiPath $path
49 function getContent(Path $path): string
51 $localPath = $path->toLocalPath();
56 * @param WikiPath $path
59 function getModifiedTime(Path $path): DateTime
61 return FileSystems::getModifiedTime($path->toLocalPath());
65 * @param WikiPath $path
69 public function getCreationTime(Path $path): DateTime
71 return FileSystems::getCreationTime($path->toLocalPath());
75 * @param WikiPath $path
77 public function delete(Path $path)
79 FileSystems::delete($path->toLocalPath());
83 * @param WikiPath $path
85 public function getSize(Path $path)
87 return FileSystems::getSize($path->toLocalPath());
101 * @param WikiPath $path
104 public function isDirectory(Path $path): bool
106 return WikiPath::isNamespacePath($path->toAbsoluteId());
107 // and not FileSystems::isDirectory($path->toLocalPath());
111 * @param WikiPath $path
115 public function getChildren(Path $path, string $type = null): array
118 $children = LocalFileSystem::getOrCreate()->getChildren($path->toLocalPath(), $type);
125 LogUtility::internalError("Unable to get back the wiki path from the local path. Error: {$e->getMessage()}");
133 * @param WikiPath $path
138 public function closest(Path $path, string $lastFullName): Path
140 return FileSystems::closest($path->toLocalPath(), $lastFullName);
144 * @param WikiPath $path
147 public function createRegularFile(Path $path)
149 FileSystems::createRegularFile($path->toLocalPath());
153 * @param WikiPath $path
157 public function setContent(Path $path, string $content)
159 FileSystems::setContent($path->toLocalPath(), $content);