ProjectFolderGetFoldersLastFolderPart Method |
Returns the name of the last folder from a folder path of arbitrary depth.
Namespace: Altaxo.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static string GetFoldersLastFolderPart(
string fullName
)
Parameters
- fullName String
- Folder path of arbitrary depth. Must be a valid full folder path.
Return Value
StringLast folder name.If the provided folder path was the root folder, the returned value is the
RootFolderName.
Else the returned value is the last part of the string, ending with the
DirectorySeparatorChar, but containing no other
DirectorySeparatorChars.
Example Given the full folder name "foo\bar\", the string "bar\" is returned.
See Also