public static bool IsFileOfType(string filepath, string typeExtenstion) { return filepath.ToLower().EndsWith(typeExtenstion.ToLower()); }