Lines Matching refs:path
49 public static function createFromPathObject(Path $path): LocalPath argument
51 if ($path instanceof LocalPath) {
52 return $path;
54 if ($path instanceof WikiPath) {
55 return $path->toLocalPath();
75 private $path; variable in ComboStrap\\LocalPath
85 * @param string $path - relative or absolute, or a locale file uri
88 public function __construct(string $path, string $sep = null) argument
95 if (strpos($path, LocalFileSystem::SCHEME.'://') === 0) {
97 $path = Url::createFromString($path)->getPath();
108 if (substr($path, 0, 2) === $networkShare) {
110 $pathWithoutNetworkShare = substr($path, 2);
113 $this->path = "/$relativePath";
116 $this->path = self::normalizeToOsSeparator($path);
140 private function normalizeToOsSeparator($path) argument
142 if ($path === self::RELATIVE_CURRENT || $path === self::RELATIVE_PARENT) {
143 return realpath($path);
147 return str_replace(self::LINUX_SEPARATOR, self::WINDOWS_SEPARATOR, $path);
149 return str_replace(self::WINDOWS_SEPARATOR, self::LINUX_SEPARATOR, $path);
193 $extension = pathinfo($this->path, PATHINFO_EXTENSION);
203 return explode($directorySeparator, $this->path);
209 return $this->path;
214 $absolutePath = pathinfo($this->path, PATHINFO_DIRNAME);
215 if ($absolutePath === $this->path || empty($absolutePath)) {
306 if (preg_match("/^(\/|[a-z]:\\\\?).*/i", $this->path)) {
330 $realPath = realpath($this->path);
365 $workingPath = $this->path;
395 $message = "Bad absolute local path file ($this->path)";
437 $pathNormalized = str_replace(self::WINDOWS_SEPARATOR, self::LINUX_SEPARATOR, $this->path);
467 return is_link($this->path);
476 return strpos($this->path, "~1") !== false;