OpenOptions$Typings extension
- on
Properties
- append ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Sets the option for the append mode. This option, whentrue
, means that writes will append to a file instead of overwriting previous contents.getter/setter pair - create ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Sets the option to allow creating a new file, if one doesn't already exist at the specified path. Requires write or append access to be used.getter/setter pair - createNew ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
If set totrue
, no file, directory, or symlink is allowed to exist at the target location. Requires write or append access to be used. When createNew is set totrue
, create and truncate are ignored.getter/setter pair - mode ↔ num?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Permissions to use if creating the file (defaults to0o666
, before the process's umask).getter/setter pair - read ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Sets the option for read access. This option, whentrue
, means that the file should be read-able if opened.getter/setter pair - truncate ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Sets the option for truncating a previous file. If a file is successfully opened with this option set it will truncate the file to0
size if it already exists. The file must be opened with write access for truncate to work.getter/setter pair - write ↔ bool?
-
Available on OpenOptions, provided by the OpenOptions$Typings extension
Sets the option for write access. This option, whentrue
, means that the file should be write-able if opened. If the file already exists, any write calls on it will overwrite its contents, by default without truncating it.getter/setter pair