Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session manages temporary files for a single browser extraction run. It creates an isolated temp directory and provides methods to copy browser files into it. Call Cleanup() when done to remove all temp files.
func NewSession ¶
NewSession creates a session with a unique temporary directory.
func (*Session) Acquire ¶
Acquire copies a browser file (or directory) from src to dst. For regular files, it also copies SQLite WAL and SHM companion files if they exist. For directories (e.g. LevelDB), it copies the entire directory while skipping lock files.
On Windows, if the normal copy fails (e.g. file locked by Chrome), it falls back to DuplicateHandle + FileMapping to bypass exclusive locks.