foo-webview-sdk
    Preparing search index...

    Interface FileReadParams

    Parameters for file.read. Read a file as text, or as Base64 with encoding: "binary". A path that does not exist fails with NOT_FOUND, and one that is not a regular file with INVALID_PATH.

    interface FileReadParams {
        encoding?: string;
        path: string;
    }
    Index
    encoding?: string

    Only exactly binary reads the raw bytes and returns them as Base64; any other value reads the file as text.

    "utf-8"
    
    path: string

    File to read.