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

File.hasRootDir

$path.hasRootDir($rootDir) -> boolean

Description

Return true if the file or directory path begins with $rootDir.

$path = file'/users/thad123/profile/image.png'

$path.hasRootDir('/users/thad123/')
//= true

See Also