An object to manipulate filesystem paths with a fluid interface.
$root = Path::info('/var/wwwroot/index.html');
$root->equals('/foo/../var/root/index.html'); // -> true
$root->isIn('/var/wwwroot/'); // -> true
$root->isAbsolute(); // -> true
$root->dirname(); // -> "/var/wwwroot/"
$root->filename(); // -> "index.html"
$root->basename(); // -> "index"
$root->extension(); // -> "html"
Path::info('../log.txt')
->abs($root)
->get(); // -> "/var/log.txt"
Path::info('/foo/../var/root/index.html')
->normalize()
->get(); // -> "/var/wwwroot/index.html"