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
Return true if the file or directory path begins with $rootDir.
$path = file'/users/thad123/profile/image.png'
$path.hasRootDir('/users/thad123/')
//= true