aboutsummaryrefslogtreecommitdiffsponsor
path: root/internal/service/rsync.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/rsync.go')
-rw-r--r--internal/service/rsync.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/service/rsync.go b/internal/service/rsync.go
index 8298589..c9c7e92 100644
--- a/internal/service/rsync.go
+++ b/internal/service/rsync.go
@@ -3,9 +3,10 @@ package service
import (
"bytes"
"errors"
- "net/url"
"os/exec"
"strings"
+
+ "git.server.ky/slackcoder/mirror/internal"
)
var rsyncOpts = []string{
@@ -19,7 +20,7 @@ var rsyncOpts = []string{
"--times",
}
-func Rsync(dst *url.URL, src *url.URL) error {
+func Rsync(dst *internal.URL, src *internal.URL) error {
src2 := *src
if !strings.HasSuffix(src2.Path, "/.") {
src2.Path = src2.Path + "/."