This commit is contained in:
brent s 2017-09-15 09:19:14 -04:00
parent e0a625853d
commit 28e46f6f51

View File

@ -33,7 +33,7 @@ def sync(args):
if args['bwlimit'] >= 1: if args['bwlimit'] >= 1:
opts.insert(10, '--bwlimit=' + str(args['bwlimit'])) # limit socket I/O bandwidth opts.insert(10, '--bwlimit=' + str(args['bwlimit'])) # limit socket I/O bandwidth
for k in ('destination', 'logfile', 'lockfile'): for k in ('destination', 'logfile', 'lockfile'):
os.makedirs(args[k], exist_ok = True) os.makedirs(os.path.dirname(args[k]), exist_ok = True)
paths = os.environ['PATH'].split(':') paths = os.environ['PATH'].split(':')
rsync = '/usr/bin/rsync' # set the default rsync = '/usr/bin/rsync' # set the default
for p in paths: for p in paths: