Skip to content

@jsvision/files / OpenFileOptions

Interface: OpenFileOptions

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

Options for openFile.

Properties

directory?

optional directory?: string

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

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


filter?

optional filter?: (entry) => boolean

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

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:18

The filesystem to read through (default nodeFileSystem).


inputName?

optional inputName?: string

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

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


save?

optional save?: boolean

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

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


title?

optional title?: string

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

The dialog title.


wildcard?

optional wildcard?: string

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

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