deno.writefileoptions
Deno.writeFileSync
和 Deno.writeFile
的选项。
Options for writing to a file.
继承关系
- WriteFileOptions
索引
Properties
Properties
Optional append
append: boolean
默认为 false
。如果设置为 true
,则将追加到文件中,而不是覆盖之前的内容。
Defaults to false
. If set to true
, will append to a file instead of overwriting previous contents.
Optional create
create: boolean
默认为 true
。如果指定路径不存在文件,是否允许创建新文件的选项。
Sets the option to allow creating a new file, if one doesn’t already exist at the specified path (defaults to true
).
Optional mode
mode: number
文件的权限。
Permissions always applied to file.
图例说明
- Property
本文档使用 TypeDoc 生成。