Skip to content

Commit

Permalink
Bug fix - need to keep including filename in rsync src or it will put…
Browse files Browse the repository at this point in the history
… directory inside a directory
  • Loading branch information
glormph committed Jun 25, 2024
1 parent bb8c4e7 commit fd648db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/datasets/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def rsync_dset_servershare(self, dset_id, srcsharename, srcpath, srcserver_url,
f'{srcserver_url}:{os.path.join(srcshare_path_controller, srcpath, srcfn)}', dstdir])
else:
# same controller on src and dst -> rsync over mounts
srcfpath = os.path.join(settings.SHAREMAP[srcsharename], srcpath)
srcfpath = os.path.join(settings.SHAREMAP[srcsharename], srcpath, srcfn)
cmd.extend([srcfpath, dstdir])
try:
subprocess.run(cmd, check=True)
Expand Down

0 comments on commit fd648db

Please sign in to comment.