Skip to main content

Module paths

Module paths 

Source
Expand description

Naming from tools/extractor.py:25-78 and tools/extractor.py:81-157. Safety policy: validate before dropping directories; reject parent, NUL, absolute and backslash-bearing paths. Empty slash components are ignored.

Functionsยง

container
Slash split, Python slicing (negative counts included), empty parts omitted.
split
POSIX splitext: a leading run of dots alone is part of the stem.
validate
Validate an untrusted relative output path, including its original prefix.