FileUtils.SafeFilename

Returns a safe filename from a string by stripping out illegal characters

public static string SafeFilename(string fileName,
	string replacementString,
	string spaceReplacement)

Return Value

Fixed up string

Parameters

fileName
Filename to fix up

replacementString
String value to replace illegal chars with. Defaults empty string

spaceReplacement
Optional - replace spaces with a specified string.


See also:

Class FileUtils

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic