Skip to main content
Deno.OpenOptions.truncate - Deno documentation
property Deno.OpenOptions.truncate

Sets the option for truncating a previous file. If a file is successfully opened with this option set it will truncate the file to 0 size if it already exists. The file must be opened with write access for truncate to work.

Type

boolean