| 1 |
nino.borges |
633 |
"""
|
| 2 |
|
|
|
| 3 |
|
|
OpProdInv
|
| 4 |
|
|
|
| 5 |
|
|
Created By
|
| 6 |
|
|
Emanuel Borges
|
| 7 |
|
|
08.07.2017
|
| 8 |
|
|
|
| 9 |
|
|
a program that will attempt to analyze a production from oposing where it's just loose native files.
|
| 10 |
|
|
|
| 11 |
|
|
"""
|
| 12 |
|
|
|
| 13 |
|
|
import os
|
| 14 |
|
|
|
| 15 |
|
|
if __name__ == '__main__':
|
| 16 |
|
|
startDir = r"\\lab-28\F\DESIGN"
|
| 17 |
|
|
outputFile = open(r"C:\Test-PY\SchneiderDesignReport.txt",'w')
|
| 18 |
|
|
|
| 19 |
|
|
|
| 20 |
|
|
for root, dirs, files in os.walk(startDir):
|
| 21 |
|
|
if files:
|
| 22 |
|
|
pass
|
| 23 |
|
|
else:
|
| 24 |
|
|
outputFile.write( "%s contains no files\n"% root)
|
| 25 |
|
|
|
| 26 |
|
|
outputFile.close() |