I am trying to do something to all the files under a given path. I don\'t want to collect all the file names beforehand then do something with them, so I tried this:
<
Try this:
if stat.S_ISDIR(stat_info.st_mode): for p in explore(path): yield p