Window

Agent.FileSystem.Entry. Window

Select a File System entry and manipulate its contents.

Note: This API is found under the following namespace Agent.FileSystem.Entry[Window-${Agent.displayId}]

Example
const FSEntry = Agent.FileSystem.Entry[`Window-${Agent.displayId}`];

Methods

(async) chooseEntry(options) → {Promise.<(module:FileSystemEntry~Directory|module:FileSystemEntry~File)>}

Select the File System entry point.

Parameters:
Name Type Description
options ChooseEntryOptions

Configuration options for the dialog

(async) createDirectory(path) → {Promise.<module:FileSystemEntry~Directory>}

Recursively create a path to a directory.

Parameters:
Name Type Description
path String

The path to the directory.

(async) createFile(path, data, type, appendopt) → {Promise.<module:FileSystemEntry~File>}

Create a file at the provided path, with the provided data and type.

Parameters:
Name Type Attributes Default Description
path String

The path to the file

data ArrayBuffer

The binary data to input into the file.

type String

The mime type of the file

append Boolean <optional>
false

Whether or not to append to an existing file.

(async) getDirectory(path) → {Promise.<module:FileSystemEntry~Directory>}

Get a directory from the provided path.

Parameters:
Name Type Description
path String

The path to the directory.

(async) getFile(path) → {Promise.<module:FileSystemEntry~File>}

Get a file from the provided path.

Parameters:
Name Type Description
path String

The path to the file.