UtilFileSystemMakeValidWindowsName Method

Determines whether the specified file-system name is a file name, a directory path or a full file path, then, teplaces invalid Windows path characters in the file name or directory path.

Definition

Namespace: DevCase.Core.IO.FileSystem
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string MakeValidWindowsName(
	string fileSystemName,
	char replacementChar = '_'
)

Parameters

fileSystemName  String
A file or directory name, directory path, or full file path.
replacementChar  Char  (Optional)
The replacement character used to replace invalid characters in the file name or directory path.

Return Value

String
The resulting file-system name containing only valid Windows path characters.

See Also