[Python-Dev] Python 2.5.1

"Martin v. Löwis" martin at v.loewis.de
Tue May 1 00:56:39 CEST 2007

> After doing some research I found that it seems to be impossible to
> use CreateFile for a file that doesn't have SHARE_READ. I played with
> different combinations and with FLAG_BACKUP_SEMANTICS and nothing
> helped. However on Windows there's still a possibility to read
> attributes: use FindFirstFile. _WIN32_FIND_DATA structure seems to
> have all the necessary fields (attributes, file times, size and
> full/short filename), and FindFirstFile doesn't care about sharing at
> all...

So what about GetFileAttributesEx? What are the conditions under which
I can successfully invoke it?


More information about the Python-Dev mailing list