{"record":{"id":"114864cde091de7e","repo":"moonD4rk/HackBrowserData","slug":"locked-file-copy-not-supported-on-this-platform","errorCode":null,"errorMessage":"locked file copy not supported on this platform","messagePattern":"locked file copy not supported on this platform","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"filemanager/copy_other.go","lineNumber":11,"sourceCode":"//go:build !windows\n\npackage filemanager\n\nimport \"fmt\"\n\n// copyLocked is not supported on non-Windows platforms and always returns an error.\n// File locking is primarily a Windows issue where Chrome holds exclusive\n// locks on Cookie files via PRAGMA locking_mode=EXCLUSIVE.\nfunc copyLocked(_, _ string) error {\n\treturn fmt.Errorf(\"locked file copy not supported on this platform\")\n}\n","sourceCodeStart":1,"sourceCodeEnd":13,"githubUrl":"https://github.com/moonD4rk/HackBrowserData/blob/0503d04d7a8d0379d060268a74f1b149e5a0aad5/filemanager/copy_other.go#L1-L13","documentation":"Unconditional sentinel error from the non-Windows build of copyLocked (guarded by //go:build !windows). The duplicate-handle/file-mapping strategy for reading files another process holds open is Windows-only, so on macOS/Linux the function always returns this error instead of attempting a copy. It signals a platform capability gap, not a runtime failure of any particular file.","triggerScenarios":"Thrown at filemanager/copy_other.go:11 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["On Unix-likes, rely on normal file copies — advisory locking rarely blocks reads","Build/run the tool on Windows where copyLocked is implemented","If a Unix browser truly blocks reads, copy via /proc/<pid>/fd or ask the user to close the browser"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0503d04d7a8d0379d060268a74f1b149e5a0aad5","analyzedAt":"2026-09-06T13:38:28.707Z","contentChangedAt":"2026-09-06T13:38:28.707Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}