We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21eb927 + 7df79f5 commit 25762efCopy full SHA for 25762ef
fs/copy_darwin.go
@@ -25,7 +25,7 @@ import (
25
26
func copyFile(target, source string) error {
27
if err := unix.Clonefile(source, target, unix.CLONE_NOFOLLOW); err != nil {
28
- if !errors.Is(err, unix.ENOTSUP) {
+ if !errors.Is(err, unix.ENOTSUP) && !errors.Is(err, unix.EXDEV) {
29
return fmt.Errorf("clonefile failed: %w", err)
30
}
31
0 commit comments