Gets the name of the directory.
public string GetDirectoryName()
If this is passed a file path, it will return the file name. This is by-and-large equivalent to how DirectoryInfo handles this scenario. If we wanted to return the *actual* directory name, we'd need to pull in IFileSystem, and do various checks to make sure things exists.
|The directory name.