This commit is contained in:
brent s 2017-09-15 09:19:14 -04:00
parent e0a625853d
commit 28e46f6f51
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def sync(args):
if args['bwlimit'] >= 1:
opts.insert(10, '--bwlimit=' + str(args['bwlimit'])) # limit socket I/O bandwidth
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(':')
rsync = '/usr/bin/rsync' # set the default
for p in paths: