@tauri-apps/plugin-fs - v2.4.1
    Preparing search index...

    Interface WriteFileOptions

    2.0.0

    interface WriteFileOptions {
        append?: boolean;
        create?: boolean;
        createNew?: boolean;
        mode?: number;
        baseDir?: BaseDirectory;
    }
    Index

    Properties

    append?: boolean

    Defaults to false. If set to true, will append to a file instead of overwriting previous contents.

    create?: boolean

    Sets the option to allow creating a new file, if one doesn't already exist at the specified path (defaults to true).

    createNew?: boolean

    Sets the option to create a new file, failing if it already exists.

    mode?: number

    File permissions. Ignored on Windows.

    baseDir?: BaseDirectory

    Base directory for path