OptimizeFileName(string, string, bool, bool, bool, bool) Method
Namespace
Statiq.Common
Containing Type
NormalizedPath

Syntax

public static string OptimizeFileName(string fileName, string reservedChars = "_~:/\\?#[]@!$&'()*+={};,", bool trimDot = true, bool collapseSpaces = true, bool spacesToDashes = true, bool toLower = true)

Parameters

Name Type Description
fileName string
reservedChars string
trimDot bool
collapseSpaces bool
spacesToDashes bool
toLower bool

Return Value

Type Description
string