Function: saveToDocuments()
ts
function saveToDocuments(filePath): Promise<SaveToDocumentsResult>;Let the user save a file to a location of their choice with the system document picker.
Parameters
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path of the file. |
Returns
Promise<SaveToDocumentsResult>
Whether the file was saved.
Throws
Error synchronously when filePath is empty.