Click or drag to resize

FilePathGetValidFilePath Method

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

Namespace: GSF.IO
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.256-beta+0e7e94d39a9b10efe7e26e3b8d5130afc0dd4d74
Syntax
public static string GetValidFilePath(
	string filePath,
	char replaceWithCharacter = '_'
)
View Source

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