win32api.GetFileAttributes
int = GetFileAttributes(pathName)
Retrieves the attributes for the named file.
Parameters
Win32 API References
Return Value
The return value is a combination of the win32con.FILE_ATTRIBUTE_* constants.An exception is raised on failure.