FileHelper.SafeName Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

SafeName(String, String)

Replaces invalid file name chars from the specified filename.

public static string SafeName(string filename, string replacement = "")

Parameters

filename
System.String
replacement
System.String

Returns

System.String

A valid filename.