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
string
replacement
string

Returns

string

A valid filename.