Skip to content

Commit

Permalink
Merge pull request #8447 from ThomasWaldmann/fix-canonical-path-rclone
Browse files Browse the repository at this point in the history
Location.canonical_path: some fixes, see #8446
  • Loading branch information
ThomasWaldmann authored Oct 2, 2024
2 parents 789ffb0 + 136d3dc commit 349e6e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/borg/helpers/parseformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,10 @@ def canonical_path(self):
path = "/./" + self.path # /./x = path x relative to cwd
else:
path = self.path
return "ssh://{}{}{}{}".format(
return "{}://{}{}{}{}".format(
self.proto if self.proto else "???",
f"{self.user}@" if self.user else "",
self._host, # needed for ipv6 addrs
self._host if self._host else "", # needed for ipv6 addrs
f":{self.port}" if self.port else "",
path,
)
Expand Down

0 comments on commit 349e6e3

Please sign in to comment.