Converts a file path to a OS-specific safe file path, replacing directory separator characters if necessary.
public static string ToSafeFilePath(string filePath, params string combineWith)
- Returns:
- string
Parameters
filePath
string
The file path to convert. Can be a relative path.
combineWith
string
Optional path segments that will be concatenated to the file path.