win32api.GetFileAttributes

int = GetFileAttributes(pathName)

Retrieves the attributes for the named file.

Parameters

pathName : string

The name of the file whose attributes are to be returned. If this param is a unicode object, GetFileAttributesW is called.

Win32 API References

Search for GetFileAttributes at msdn, google or google groups.

Search for GetFileAttributesW at msdn, google or google groups.

Return Value

The return value is a combination of the win32con.FILE_ATTRIBUTE_* constants.
An exception is raised on failure.