Setu-TS
    Preparing search index...

    Function isLexicallyContained

    • Checks if a relative path is lexically contained within a root.

      This is a simple lexical check that rejects paths containing '..' segments. For symlink-safe containment, use assertRealPathContained.

      Parameters

      • relativePath: string

        The relative path to check

      Returns boolean

      True if the path is contained, false otherwise

      0.1.0