Author brian.curtin
Recipients brian.curtin, eli.bendersky, giampaolo.rodola, loewis, stutzbach, tim.golden
Date 2011-06-03.20:55:51
SpamBayes Score 5.56958e-07
Marked as misclassified No
Message-id <1307134552.3.0.102969055662.issue11583@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch that works. All tests are passing.

I changed from using FindFirstFile to GetFileAttributes, which provides basically the same performance characteristics.

One change in this implementation is to not raise a WindowsError when the file cannot be opened. The original os.stat would return False in that case, so now this function returns False (before it just passed on the WindowsError, which killed lots of tests).
History
Date User Action Args
2011-06-03 20:55:52brian.curtinsetrecipients: + brian.curtin, loewis, giampaolo.rodola, tim.golden, stutzbach, eli.bendersky
2011-06-03 20:55:52brian.curtinsetmessageid: <1307134552.3.0.102969055662.issue11583@psf.upfronthosting.co.za>
2011-06-03 20:55:51brian.curtinlinkissue11583 messages
2011-06-03 20:55:51brian.curtincreate