OpenOptions class
Options which can be set when doing {@linkcode Deno.open} and {@linkcode Deno.openSync}.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
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 - hashCode → int
-
The hash code for this object.
no setterinherited
- 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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited