Add safe immutable directory promotion

This commit is contained in:
2026-08-09 23:37:02 +00:00
parent 98734644d6
commit dce721cdbd
8 changed files with 507 additions and 1 deletions

View 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")
}