Version: v0.8.1 - Beta.  We welcome contributors & feedback.

File.isAbsolute

$path.isAbsolute() -> boolean

Description

Return true if the file or directory path is absolute (not relative).

$someFile = file'files:/some/file.txt'
$someFile.isAbsolute()
//= false

$someDir = dir'/full/path/to/dir'
$someDir.isAbsolute()
//= true

See Also