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'
Remove $endPath
from the end of $fullPath
.
$fullPath = '/users/theo123/profile/image.png' File.stripEndPath($fullPath, '/profile/image.png') //= '/users/theo123'