Skip to content

Commit

Permalink
embed: turn source path to absolute for error-less copy (#198)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
  • Loading branch information
mohammed90 committed Aug 30, 2024
1 parent 7888727 commit 7c21167
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions io.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

// copy recursively copies src into dst with src's file modes.
func copy(src, dst string) error {
src, _ = filepath.Abs(src)
src = filepath.ToSlash(src)
dst = filepath.ToSlash(dst)
log.Printf("[INFO] copying files: src=%s dest=%s", src, dst)
Expand Down

0 comments on commit 7c21167

Please sign in to comment.