Skip to content

Commit

Permalink
Merge pull request #2 from hantsaniala/feature/fix-windows-path
Browse files Browse the repository at this point in the history
fix(upload): fix path problem on windows
  • Loading branch information
hantsaniala authored Oct 21, 2024
2 parents 1ccd5e4 + 3e3d9f3 commit 208815f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/uploader/ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 208815f

Please sign in to comment.