static bool ValidFileName (string fileName) { if (!RuntimeHelpers.RunningOnWindows) return true; if (fileName == null || fileName.Length == 0) return false; return (!StrUtils.EndsWith (fileName, " ") && !StrUtils.EndsWith (fileName, ".")); }