Returns True if file_path is strictly inside root with symlinks resolved.

Methods

_is_inside_root

_is_inside_root(file_path: Path, root: Optional) -> bool

Returns True if file_path is strictly inside root with symlinks resolved.

ParameterTypeDescription
file_pathPath
rootOptional

Generated with Flude

Copyright © 2026