More work on file transfer

This commit is contained in:
Kovid Goyal
2021-10-30 16:54:27 +05:30
parent f1573654b9
commit d03f4dbc98
3 changed files with 28 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ def files_for_receive(cli_opts: TransferCLIOptions, dest: str, files: List[File]
dest_path = os.path.join(dest, posixpath.basename(files_for_spec[0].remote_path))
else:
dest_path = dest
tree = make_tree(files_for_spec, expand_home(dest_path))
tree = make_tree(files_for_spec, os.path.dirname(expand_home(dest_path)))
for x in tree:
yield x.entry