public static HasAttributes ( string fileName, FileAttributes attr ) : bool | ||
fileName | string | |
attr | FileAttributes | |
return | bool |
public static bool HasAttributes(string fileName, FileAttributes attr)
{
return ((File.GetAttributes(fileName) & attr) == attr);
}