Lines Matching refs:path
25 * @param MarkupPath $path
28 function exists(Path $path): bool
30 return FileSystems::exists($path->getPathObject());
34 * @param MarkupPath $path
37 function getContent(Path $path): string
39 return FileSystems::getContent($path->getPathObject());
43 * @param MarkupPath $path
46 function getModifiedTime(Path $path): DateTime
48 return FileSystems::getModifiedTime($path->getPathObject());
52 * @param MarkupPath $path
56 public function getChildren(Path $path, string $type = null): array
62 $pathObject = $path->getPathObject();
79 public function setContent(Path $path, string $content)
82 FileSystems::setContent($path->toLocalPath(), $content);
84 throw new ExceptionRuntimeInternal("The path could not be cast to a local path", self::CANONICAL, 1, $e);
88 public function delete(Path $path)
92 FileSystems::delete($path->toLocalPath());
94 throw new ExceptionRuntimeInternal("The path could not be deleted", self::CANONICAL, 1, $e);