Polyman Documentation - v3.1.0
    Preparing search index...

    Class FolderSandbox

    A Sandbox for one problem folder.

    Implements

    Index
    root: string

    The real path of the problem folder.

    allowWrite: string[] | undefined
    allowPatterns: RegExp[] | undefined
    • Returns the real path, or throws a SandboxError.

      Parameters

      • userPath: string
      • mode: "write" | "read"

      Returns Promise<string>