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

    Interface Sandbox

    Keeps every file access inside the problem folder.

    interface Sandbox {
        root: string;
        resolve(userPath: string, mode: "write" | "read"): Promise<string>;
    }

    Implemented by

    Index
    root: string

    The real path of the problem folder.

    • Returns the real path, or throws a SandboxError.

      Parameters

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

      Returns Promise<string>