Files
Roger 3e9150249c refactor: rename core types and spell out every name (#677)
Def, Request, DirID, and Source said too little, and short variables and doc comments that skip their name hid intent.
varnamelen and staticcheck ST1020-22 now keep both from coming back.
2026-11-02 11:06:05 +08:00

18 lines
272 B
Go

//go:build windows
package snapshot
import (
"os"
"github.com/moond4rk/hackbrowserdata/internal/winapi"
)
func copyLocked(from, into string) error {
data, err := winapi.ReadLockedFile(from)
if err != nil {
return err
}
return os.WriteFile(into, data, 0o600)
}