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 b0be981 commit dfdea8e
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 @@ -267,7 +267,7 @@ func (*GuluFile) copyFile(source, dest string, chtimes bool) (err error) {
return
}

if 0 == sourceinfo.Mode()&os.ModeSymlink {
if 0 != sourceinfo.Mode()&os.ModeSymlink {
// 忽略符号链接
return
}
Expand Down

0 comments on commit dfdea8e

Please sign in to comment.