[This is preliminary documentation and is subject to change.]
Gets full directory name for a given path, or path root for directory-less paths.
Uses either Path.GetDirectoryName or Path.GetPathRoot to get the result.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.2 (0.6.3.2)
Syntax
| C# |
[NotNullAttribute] public static string GetDirectoryNameOrRoot( string fileOrDirName )
Parameters
- fileOrDirName
- String
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | If fileOrDirName is null. |