@backblaze-labs/b2-mcp
    Preparing search index...

    Function isInsideFileRoot

    • Report whether an already resolved path is inside the sandbox root without resolving it again, as for a path the kernel reported for an open descriptor.

      Parameters

      • config: B2Config

        Server configuration carrying the optional sandbox root.

      • realPath: string

        Absolute path with every symlink already resolved.

      Returns boolean

      True when no sandbox root is configured or the path is inside it.

      FileAccessError when the configured sandbox root does not exist.