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

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

See Also