From 2597c03d1555e00dec59830b7de75e7090208e05 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Wed, 2 Oct 2024 16:49:36 -0500 Subject: config: Use TOML TOML is simple for users, and it is used in notably projects like rustlang. It also provides comments! --- internal/service/rsync.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/service/rsync.go') 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 + "/." -- cgit v1.2.3