...
This commit is contained in:
parent
8ff59fdaf0
commit
30f508f40c
@ -58,7 +58,7 @@ def sync(args):
|
|||||||
# Disabled the try/except because otherwise it complains on broken symlinks. Gah!
|
# Disabled the try/except because otherwise it complains on broken symlinks. Gah!
|
||||||
subprocess.call(cmd, stdout = log, stderr = subprocess.STDOUT)
|
subprocess.call(cmd, stdout = log, stderr = subprocess.STDOUT)
|
||||||
now = int(datetime.datetime.timestamp(datetime.datetime.utcnow()))
|
now = int(datetime.datetime.timestamp(datetime.datetime.utcnow()))
|
||||||
with open(os.path.join(dest['path'], 'lastsync'), 'w') as f:
|
with open(os.path.join(args['destination'], 'lastsync'), 'w') as f:
|
||||||
f.write(str(now) + '\n')
|
f.write(str(now) + '\n')
|
||||||
os.remove(args['lockfile'])
|
os.remove(args['lockfile'])
|
||||||
# except:
|
# except:
|
||||||
|
Loading…
Reference in New Issue
Block a user