| Revision: | 8 |
| Committed: | Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges |
| Content type: | text/x-python |
| File size: | 396 byte(s) |
| Log Message: | Initial Import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | ninoborges | 8 | """ |
| 2 | quickTools | ||
| 3 | |||
| 4 | Created by | ||
| 5 | Emanuel Borges | ||
| 6 | |||
| 7 | Just some quick random tools | ||
| 8 | |||
| 9 | """ | ||
| 10 | |||
| 11 | import os | ||
| 12 | |||
| 13 | def CaptureFileListing(outPutFilePath, dirname, filesInDir): | ||
| 14 | """inumerates a dir of nested dirs to a file""" | ||
| 15 | outputFile = open(outPutFilePath, 'a') | ||
| 16 | for file in filesInDir: | ||
| 17 | if os.path.isfile(dirname + "\\" +file): | ||
| 18 | outputFile.write(dirname + "," + file + "\n") |