Skip to content

Commit 208815f

Browse files
authored
Merge pull request #2 from hantsaniala/feature/fix-windows-path
fix(upload): fix path problem on windows
2 parents 1ccd5e4 + 3e3d9f3 commit 208815f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/uploader/ftp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func Push(c Config, s Server, f string) error {
4444
}
4545

4646
// Upload the file to the destination path
47-
if err := client.UploadFile(filepath.Join(c.Destination, f), fileData); err != nil {
47+
if err := client.UploadFile(fmt.Sprintf("%s/%s", c.Destination, f), fileData); err != nil {
4848
return err
4949
}
5050
return nil

0 commit comments

Comments
 (0)