FilePathTrimFileName Method

Returns a file name, for display purposes, of the specified length using "..." to indicate a longer name.

Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.147 -- Release Build+759c9d29b79c81f10905de8f58b653be932045f0
public static string TrimFileName(
	string filePath,
	int length
)

Parameters

filePath  String
The file path to be trimmed.
length  Int32
The maximum length of the trimmed file path.

Return Value

String
Trimmed file path.

Remarks

Minimum value for the length parameter is 12. 12 will be used for any value specified as less than 12.

See Also