public static bool IsInvalidFileName(string name) { bool ret = invalidFileNameRegex.IsMatch(name); if (ret) { Logger.Debug(String.Format("The given file name {0} contains invalid patterns", name)); return ret; } return ret; }