BuildMaster SDK Reference
Version:

GetDirectoryName(string path) Method

Same as System.IO.Path.GetDirectoryName(System.String), but preserves the directory separator character.

Syntax

public static string GetDirectoryName(string path)

Parameters

path
Type: string

The path of a file or directory.

Returns

A System.String containing directory information for path, or null (Nothing in Visual Basic) if path denotes a root directory, is the empty string (""), or is null (Nothing in Visual Basic).