daca2: write date in results
This commit is contained in:
parent
69ec624ea5
commit
a61ccf2e9a
|
@ -128,6 +128,13 @@ print('Get package list in folder ' + FOLDER)
|
||||||
packages = f.nlst(FTPPATH + FOLDER)
|
packages = f.nlst(FTPPATH + FOLDER)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# remove all files/folders except results.txt
|
||||||
|
removeAllExceptResults()
|
||||||
|
|
||||||
|
results = open('results.txt', 'wt')
|
||||||
|
results.write('DATE ' + str(datetime.date.today()) + '\n\n')
|
||||||
|
results.close()
|
||||||
|
|
||||||
for package in packages:
|
for package in packages:
|
||||||
scanpackage(package, f)
|
scanpackage(package, f)
|
||||||
except EOFError:
|
except EOFError:
|
||||||
|
|
Loading…
Reference in New Issue