[Python-Dev] Python 2.5.1 (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue May 1 00:56:39 CEST 2007
- Previous message: [Python-Dev] Call for junior PEP editors
- Next message: [Python-Dev] Python 2.5.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
After doing some research I found that it seems to be impossible to use CreateFile for a file that doesn't have SHAREREAD. I played with different combinations and with FLAGBACKUPSEMANTICS and nothing helped. However on Windows there's still a possibility to read attributes: use FindFirstFile. WIN32FINDDATA 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?
Regards, Martin
- Previous message: [Python-Dev] Call for junior PEP editors
- Next message: [Python-Dev] Python 2.5.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]