콘텐츠로 이동

WriteFileOptions

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/fs · Kind Interface

import { WriteFileOptions } from '@netwiv/api/plugins/fs';
append?: boolean | undefined

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

baseDir?: BaseDirectory | undefined

Base directory for path

create?: boolean | undefined

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

createNew?: boolean | undefined

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

mode?: number | undefined

File permissions. Ignored on Windows.

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-fs@2.5.2 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.