static bool CanContainFile(string f) { var i = f.LastIndexOfAny(PathSep); return i < -1 ? !f.StartsWith(".") : f[i + 1] != '.'; }