Lines Matching defs:LocalPath
9 * Class LocalPath
17 class LocalPath extends PathAbs
36 public static function createFromUri($uri): LocalPath
41 return new LocalPath($uri);
49 public static function createFromPathObject(Path $path): LocalPath
51 if ($path instanceof LocalPath) {
64 public static function createDesktopDirectory(): LocalPath
66 return LocalPath::createHomeDirectory()->resolve("Desktop");
84 * LocalPath constructor.
92 * if we pass a {@link LocalPath}, no error,
122 * @return LocalPath
123 * @deprecated for {@link LocalPath::createFromPathString()}
125 public static function create(string $filePath): LocalPath
127 return new LocalPath($filePath);
156 public static function createHomeDirectory(): LocalPath
165 return LocalPath::createFromPathString($home);
169 public static function createFromPathString(string $string, string $sep = null): LocalPath
171 return new LocalPath($string, $sep);
219 return new LocalPath($absolutePath);
242 public function resolve(string $name): LocalPath
253 public function relativize(LocalPath $localPath): LocalPath
278 return LocalPath::createFromPathString("");
283 return LocalPath::createFromPathString($relativePath);
322 public function toCanonicalAbsolutePath(): LocalPath
353 return LocalPath::createFromPathString($realPath);
415 return LocalPath::createFromPathString($realPath);