mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-05 21:24:44 -06:00
@@ -20,6 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type WasabiStorage struct {
|
type WasabiStorage struct {
|
||||||
@@ -99,6 +100,8 @@ func (storage *WasabiStorage) MoveFile(
|
|||||||
|
|
||||||
// The from path includes the bucket
|
// The from path includes the bucket
|
||||||
from_path := fmt.Sprintf("/%s/%s/%s", storage.bucket, storage.storageDir, from)
|
from_path := fmt.Sprintf("/%s/%s/%s", storage.bucket, storage.storageDir, from)
|
||||||
|
// Ensure no double slashes exist in the path which angers Wasabi's backend
|
||||||
|
from_path = strings.Replace(from_path, "//", "/", -1)
|
||||||
|
|
||||||
object := fmt.Sprintf("https://%s@%s%s",
|
object := fmt.Sprintf("https://%s@%s%s",
|
||||||
storage.region, storage.endpoint, from_path)
|
storage.region, storage.endpoint, from_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user