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

File.stripRootPath

File.stripRootPath($fullPath, $rootPath) -> string

Description

Remove $rootPath from the beginning of $fullPath.

$fullPath = '/users/theo123/profile/image.png'

File.stripRootPath($fullPath, '/users/theo123/')
//= 'profile/image.png'

See Also