Appearance
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
| Parameter | Type | Description |
|---|---|---|
filePath | string | Path 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');