mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
Merge pull request #8447 from ThomasWaldmann/fix-canonical-path-rclone
Location.canonical_path: some fixes, see #8446
This commit is contained in:
commit
349e6e37ef
1 changed files with 3 additions and 2 deletions
|
|
@ -616,9 +616,10 @@ class Location:
|
|||
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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue