FilePathGetValidFilePath Method

Gets a valid file path by replacing invalid file or directory name characters with replaceWithCharacter.

Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.163 -- Release Build+087b6813ba03894bf4bfe2466a2a63a9702d9bb9
public static string GetValidFilePath(
	string filePath,
	char replaceWithCharacter = '_'
)

Parameters

filePath  String
File path to validate.
replaceWithCharacter  Char  (Optional)
Character to replace invalid file or directory name characters with. Set to '\0' to remove invalid file or directory name characters.

Return Value

String
A valid file path with no invalid file or directory name characters.

See Also