todo, cleaning up timestamp file

This commit is contained in:
brent s 2018-05-05 07:05:15 -04:00
parent b843a473bc
commit eb33ecd559

View File

@ -17,6 +17,8 @@ NOWstr = NOW.strftime('%Y-%m-%d')

# TODO:
# - cleanup/rotation should be optional
# - turn into a class so we can more easily share vars across functions
# - also, create the "CURRENT" symlink *AFTER* the dump completes?

cfgfile = os.path.join(os.environ['HOME'], '.config', 'optools', 'sksdump.ini')

@ -366,7 +368,7 @@ def main():
str(datetime.datetime.utcnow())))
with open(os.path.join(args['destdir'], 'LAST_COMPLETED_DUMP.txt'),
'w') as f:
f.write(str(datetime.datetime.utcnow()))
f.write(str(datetime.datetime.utcnow()) + ' UTC\n')


if __name__ == '__main__':