Example #1
0
 /// <summary>
 /// 过滤禁用文件名称路径错误字符
 /// </summary>
 public static string FilterDisableFileNameChar(string filepath)
 {
     return(ConvertTool.FilterDisableChars(filepath, Path.GetInvalidFileNameChars()));
 }
Example #2
0
 /// <summary>
 /// 过滤禁用路径错误字符
 /// </summary>
 public static string FilterDisablePathChar(string path)
 {
     return(ConvertTool.FilterDisableChars(path, Path.GetInvalidPathChars()));
 }