Skip to content

Commit

Permalink
fix os.go
Browse files Browse the repository at this point in the history
Signed-off-by: Christina <[email protected]>
  • Loading branch information
cratiu222 authored Jul 7, 2024
1 parent e154f79 commit 2ff2a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/os/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func CopyFile(src, dst string) error {
return errors.New("cannot read from directories")
}

// create new file, truncate if exists and apply same permissions as the original one
// create a new file, truncate if exists and apply same permissions as the original one
dstfile, err := os.OpenFile(dst, os.O_RDWR|os.O_CREATE|os.O_TRUNC, info.Mode().Perm())
if err != nil {
return err
Expand Down

0 comments on commit 2ff2a45

Please sign in to comment.