static bool IsDirectory(string part) { return part.ToLower().StartsWith("d") || part.ToLower().Contains("<dir>"); }