From 3e3d9f300423be5eb7e80aaf33f8945ff93f95b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hantsaniala=20El=C3=A9o?= Date: Mon, 21 Oct 2024 19:14:24 +0300 Subject: [PATCH] fix(upload): fix path problem on windows --- pkg/uploader/ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uploader/ftp.go b/pkg/uploader/ftp.go index a413c6c..af4998c 100644 --- a/pkg/uploader/ftp.go +++ b/pkg/uploader/ftp.go @@ -44,7 +44,7 @@ func Push(c Config, s Server, f string) error { } // Upload the file to the destination path - if err := client.UploadFile(filepath.Join(c.Destination, f), fileData); err != nil { + if err := client.UploadFile(fmt.Sprintf("%s/%s", c.Destination, f), fileData); err != nil { return err } return nil