Files
Roger 0b8cc23216 refactor: introduce internal/snapshot for copy and zip (#653)
One copier and one zip transport serve archive, restore, and every profile copy, so locked-file handling has one home.
Dropping otiai10/copy takes x/sync out of every binary and testing out of the Windows exe.
2026-10-27 14:54:54 +08:00

11 lines
272 B
Go

//go:build !windows
package snapshot
import "errors"
// copyLocked exists for the build only: file locks outside Windows are advisory and never block a reader.
func copyLocked(_, _ string) error {
return errors.New("locked file copy not supported on this platform")
}