win32api.GetFileAttributes

int = GetFileAttributes(pathName)

Retrieves the attributes for the named file.

Parameters

pathName : string/bytes

The name of the file whose attributes are to be returned. This calls the Windows GetFileAttributesW function.

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.