Strip Path

Returns the name of the last component of a path and the stripped path that leads to that component.

path specifies the path on which you want to operate. If this parameter is an empty path or is invalid, this function returns an empty string in name and Not A Path in stripped path.
stripped path is the resulting path obtained by removing name from the end of path.
name is the last component of the specified path.