去掉中文文件名

public static void DeleteAllChineseFiles(){Regex reg = new Regex("[\\u4e00-\\u9fa5]"); string[] fileNames = Directory.GetFiles(Application.streamingAssetsPath, "*.*", SearchOption.AllDirectories); foreach (string fileName in fileNames) {if (reg.IsMatch(fileName)) { Debug.LogFormat("fileName is invaild:===={0}", fileName); FileUtil.DeleteFileOrDirectory(fileName); }}}

    推荐阅读