rsync url patch

This commit is contained in:
ixof 2016-12-09 01:08:43 -06:00 committed by GitHub
parent 99d0afd650
commit 1e5bd53c30
1 changed files with 5 additions and 2 deletions

View File

@ -393,8 +393,11 @@ def list_target_files(config):
rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)')
rsync_target = '{host}:{path}'
_, target_host, target_path = config['target'].split('//')
target_path = '/' + target_path
## _, target_host, target_path = config['target'].split('//')
target_host = p.netloc
target_path = p.path
if not target_path.startswith('/'):
target_path = '/' + target_path
if not target_path.endswith('/'):
target_path += '/'