File.hasRootPath
File.hasRootPath($fullPath, $rootPath) -> boolean
Description
Return true
if $fullPath
begins with $rootPath
.
$fullPath = '/users/theo123/profile/image.png' File.hasRelativePath($fullPath, '/users/theo123/') //= true
Return true
if $fullPath
begins with $rootPath
.
$fullPath = '/users/theo123/profile/image.png' File.hasRelativePath($fullPath, '/users/theo123/') //= true