Skip to content

FileSystemExtensions.GetDirectoryName method

Gets the directory name for the specified path.

public static string GetDirectoryName(this IFileSystem _, string path)
parameter description
_ The file system.
path The path.

Return Value

The directory name, or null if the path does not contain a directory.

See Also