Skip to content

Commit

Permalink
🎨 Copy file ignore symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed May 1, 2024
1 parent 5e7c222 commit b0be981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (*GuluFile) copyFile(source, dest string, chtimes bool) (err error) {
}
defer destfile.Close()

sourceinfo, err := os.Stat(source)
sourceinfo, err := os.Lstat(source)
if nil != err {
return
}
Expand Down

0 comments on commit b0be981

Please sign in to comment.