Expand description
Entry-path containment: the single decision point for whether an archive entry’s name (or a symlink’s target) may be written under a destination directory.
Pure and filesystem-free by design — see the module-level doc comments on each function for why.
Functions§
- check_
symlink_ target - Refuses a symlink whose target would resolve outside
dest. - safe_
join - Joins
entry_nameontodest, refusing anything that escapes.