RobinDavid/pyADS — pull request #1 by citterio (2012-10-09 11:44:59+00:00)
Title: fixed handling of directories and added supported Windows versions to readme

Here is a fix for the issue I reported in http://robindavid.comli.com/pyads/#comment-298.

FindFirstStreamW in ADS.retrieveStreams was returning a handle of -1 when there is no data stream, which is the case for directories without any data stream. This was never a problem for files, because files always have at least the default data stream. Also, the first ADS of directories with one or more ADS was missed: it was found already by FindFirstStreamW, but not appended to streamlist.

This now works for me, but I may not have tested all use cases.

I added to readme that FindFirstStreamW and FindNextStreamW were not available before Vista/2003.