Skip to content

Function: selectFileOrFolder()

ts
function selectFileOrFolder(filePath: string): Promise<void>;

Defined in: src/file/offerMwFile.tsx:331

Experimental

Select (highlight) a file in the system file explorer.

Parameters

ParameterTypeDescription
filePathstringPath to the file to select.

Returns

Promise<void>

Resolves when the file is highlighted.

Example

ts
await selectFileOrFolder('/Users/me/Photos/vacation/beach-sunset.jpg');
console.log('Highlighted the best photo from vacation');

Matterway Assistant SDK Documentation