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

File.stripEndPath

File.stripEndPath($fullPath, $endPath) -> string

Description

Remove $endPath from the end of $fullPath.

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

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

See Also