System.IO.Win32Directory.Exists C# (CSharp) Method

Exists() public static method

public static Exists ( string filepath ) : bool
filepath string
return bool
        public static bool Exists(string filepath)
        {
            uint attribs = GetFileAttributesW(Win32File.LongFileName(filepath));
            return (attribs != INVALID_FILE_ATTRIBUTES) && ((attribs & FILE_ATTRIBUTE_DIRECTORY) != 0);
        }