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.
1 parent 21eb927 commit 7df79f5Copy full SHA for 7df79f5
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