daca2: write date in results

This commit is contained in:
Daniel Marjamäki 2013-10-13 11:43:05 +02:00
parent 69ec624ea5
commit a61ccf2e9a
1 changed files with 7 additions and 0 deletions

View File

@ -128,6 +128,13 @@ print('Get package list in folder ' + FOLDER)
packages = f.nlst(FTPPATH + FOLDER)
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:
scanpackage(package, f)
except EOFError: