Click or drag to resize

ProjectFolderSplitIntoFolderAndNamePart Method

Splits into directory and name portion of a full name. The full name can either be the name of an item (worksheet, graph) or a full folder name. If the name of a item (worksheet or graph) is provided, it is splitted into the item's folder name and the item's name. If a full folder path is provided (i.e. either an empty string or a string ending with a DirectorySeparatorChar), it is splitted into the name of the parent folder and the name of the last folder.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void SplitIntoFolderAndNamePart(
	string fullName,
	out string directoryPart,
	out string namePart
)

Parameters

fullName  String
The fullName to split.
directoryPart  String
On return, contains the directory part information (either an empty string for the root folder or a folder name with trailing DirectorySeparatorChar.
namePart  String
On return, contains the name part information, i.e. the last part of the fullName. If the provided fullName was the name of an item, the name portion doesn't contain any DirectorySeparatorChar. if the provided fullName was the name of a project folder, the name portion is either a empty string (the root folder name), or has a trailing DirectorySeparatorChar, but no other DirectorySeparatorChars.
See Also