Lines Matching defs:localPath
253 public function relativize(LocalPath $localPath): LocalPath
272 if (!$localPath->isAbsolute() || $localPath->isShortName()) {
273 $localPath = $localPath->toCanonicalAbsolutePath();
276 if (strpos($actualPath->toAbsoluteId(), $localPath->toAbsoluteId()) === 0) {
277 if ($actualPath->toAbsoluteId() === $localPath->toAbsoluteId()) {
281 $relativePath = substr($actualPath->toAbsoluteId(), strlen($localPath->toAbsoluteId()) + $sepCharacter);
290 return $realPath->relativize($localPath);
292 if ($localPath->isSymlink()) {
293 $localPath = $localPath->toCanonicalAbsolutePath();
294 $this->relativize($localPath);
296 throw new ExceptionBadArgument("The path ($localPath) is not a parent path of the actual path ($actualPath)");