Add safe immutable directory promotion
This commit is contained in:
9
internal/fileops/rename_noreplace_other.go
Normal file
9
internal/fileops/rename_noreplace_other.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !linux
|
||||
|
||||
package fileops
|
||||
|
||||
import "fmt"
|
||||
|
||||
func renameDirectoryNoReplace(_, _ string) error {
|
||||
return fmt.Errorf("atomic no-replace directory rename is unsupported on this platform")
|
||||
}
|
||||
Reference in New Issue
Block a user