FileOptions

@JSType trait FileOptions extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

@ExposedJSMember @JSOptional
val base64: UndefOr[Boolean]

set to true if the data is base64 encoded. For example image data from a canvas element. Plain text and HTML do not need this option.

set to true if the data is base64 encoded. For example image data from a canvas element. Plain text and HTML do not need this option.

@ExposedJSMember @JSOptional
val binary: UndefOr[Boolean]

set to true if the data should be treated as raw content, false if this is a text. If base64 is used, this defaults to true, if the data is not a string, this will be set to true

set to true if the data should be treated as raw content, false if this is a text. If base64 is used, this defaults to true, if the data is not a string, this will be set to true

@ExposedJSMember @JSOptional
val comment: UndefOr[String]

The comment for this file

The comment for this file

@ExposedJSMember @JSOptional
val compression: UndefOr[String]

If set, specifies compression method to use for this specific file. If not, the default file compression will be used

If set, specifies compression method to use for this specific file. If not, the default file compression will be used

@ExposedJSMember @JSOptional
@ExposedJSMember @JSOptional
val createFolders: UndefOr[Boolean]

Set to true if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file

Set to true if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file

@ExposedJSMember @JSOptional
val date: UndefOr[Date]

the last modification date

the last modification date

@ExposedJSMember @JSOptional
val dir: UndefOr[Boolean]

Set to true if this is a directory and content should be ignored

Set to true if this is a directory and content should be ignored

@ExposedJSMember @JSOptional
val dosPermissions: UndefOr[Byte]

The DOS permissions of the file, if any

The DOS permissions of the file, if any

@ExposedJSMember @JSOptional
val optimizedBinaryString: UndefOr[Boolean]

Set to true if (and only if) the input is a “binary string” and has already been prepared with a 0xFF mask.

Set to true if (and only if) the input is a “binary string” and has already been prepared with a 0xFF mask.

@ExposedJSMember @JSOptional
val unixPermissions: UndefOr[Short | String]

The UNIX permissions of the file, if any. Also accepts a string representing the octal value: “644”, “755”, etc.

The UNIX permissions of the file, if any. Also accepts a string representing the octal value: “644”, “755”, etc.