INVALID_FILE_ATTRIBUTES (Constants)
Last changed: -83.28.59.247

.
Summary

C# Constants:

const Int64 INVALID_FILE_ATTRIBUTES = -1;

VB Constants:

TODO

Notes:

// ported http://stackoverflow.com/questions/6218325/how-do-you-check-if-a-directory-exists-on-windows-in-c

public static bool DirectoryExists(string path)
{
       int attributes = GetFileAttributes(path);

       return (attributes != INVALID_FILE_ATTRIBUTES && ((attributes & FILE_ATTRIBUTE_DIRECTORY) != 0));
}