Managing file names and path names
To get the last name of a file path, like ‘foo.txt’ out of ‘/etc/asdf/foo.txt’:
To get the last name of a Windows style file path (new in version 2.0):
To separate the Windows drive letter from the rest of a file path (new in version 2.0):
To get only the Windows drive letter:
To get the rest of the path without the drive letter:
To get the directory from a path: