返回 DeepSeek-Reasonix
nlink_windows.go
根目录 / internal / checkpoint / nlink_windows.go
1 //go:build windows
2
3 package checkpoint
4
5 import "os"
6
7 // The portable os.FileInfo contract does not expose Windows link counts.
8 // Returning one avoids rejecting ordinary files while the path/symlink guards
9 // still protect restore targets on Windows.
10 func fileNlink(_ os.FileInfo) uint64 { return 1 }
11
11 lines GO