System.IO.Win32File.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(LongFileName(filepath));
            return (attribs != INVALID_FILE_ATTRIBUTES) && ((attribs & FILE_ATTRIBUTE_DIRECTORY) == 0);
        }