s3tools/s3cmd — pull request #27 by mdomsch (2012-02-24 21:17:49+00:00)
Title: Fix for Issue #4: exclude directories during os.walk()

I borrowed liberally from the code that was doing exclusions, to apply those same exclusions during os.walk() time. This works for me.