Skip to content

Commit

Permalink
Merge branch 'backup-cmd' of github.com:aiidateam/disk-objectstore in…
Browse files Browse the repository at this point in the history
…to backup-cmd
  • Loading branch information
eimrek committed Jan 11, 2024
2 parents 54c1e23 + ddd9150 commit a79f73a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions disk_objectstore/backup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,8 @@ def call_rsync( # pylint: disable=too-many-arguments
if link_dest:
if not self.remote:

Check warning on line 157 in disk_objectstore/backup_utils.py

View check run for this annotation

Codecov / codecov/patch

disk_objectstore/backup_utils.py#L153-L157

Added lines #L153 - L157 were not covered by tests
# for local paths, use resolve() to get absolute path
link_dest_str = str(link_dest.resolve())
else:
# for remote paths, we require absolute paths anyways
link_dest_str = str(link_dest)
all_args += [f"--link-dest={link_dest_str}"]
link_dest = link_dest.resolve()
all_args += [f"--link-dest={link_dest}"]

Check warning on line 160 in disk_objectstore/backup_utils.py

View check run for this annotation

Codecov / codecov/patch

disk_objectstore/backup_utils.py#L159-L160

Added lines #L159 - L160 were not covered by tests

if src_trailing_slash:
all_args += [str(src) + "/"]

Check warning on line 163 in disk_objectstore/backup_utils.py

View check run for this annotation

Codecov / codecov/patch

disk_objectstore/backup_utils.py#L162-L163

Added lines #L162 - L163 were not covered by tests
Expand Down

0 comments on commit a79f73a

Please sign in to comment.