HH\Lib\File\Path
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as File\Path()
in Facebook's www repository.
Interface Synopsis
namespace HH\Lib\File;
final class Path {...}
Public Methods
->__construct(string $path)
->exists(): bool
->getBaseName(): string
->getExtension(): ?string
->getParent(): Path
->getParts(): vec<string>
->isAbsolute(): bool
->isDirectory(): bool
->isFile(): bool
->isRelative(): bool
->isSymlink(): bool
->toString(): string
->withExtension(string $extension): Path