Skip to content

@jsvision/files / OpenFileOptions

Interface: OpenFileOptions

Defined in: files/src/openers.ts:17

Options for openFile.

Properties

directory?

optional directory?: string

Defined in: files/src/openers.ts:21

The starting directory (default the filesystem's cwd).


filter?

optional filter?: (entry) => boolean

Defined in: files/src/openers.ts:31

An extra predicate AND-ed with the wildcard when listing files.

Parameters

entry

DirEntry

Returns

boolean


fs?

optional fs?: FileSystem

Defined in: files/src/openers.ts:19

The filesystem to read through (default nodeFileSystem).


inputName?

optional inputName?: string

Defined in: files/src/openers.ts:29

The filename input label (default '~N~ame'; wrap the hotkey letter in tildes).


save?

optional save?: boolean

Defined in: files/src/openers.ts:25

Show save mode — the OK/Replace/Clear button set — instead of open mode.


title?

optional title?: string

Defined in: files/src/openers.ts:27

The dialog title.


wildcard?

optional wildcard?: string

Defined in: files/src/openers.ts:23

The starting wildcard (default '*.*').