Skip to content

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 ​

ParameterTypeDescription
filePathstringAbsolute path of the file.

Returns ​

Promise<SaveToDocumentsResult>

Whether the file was saved.

Throws ​

Error synchronously when filePath is empty.

Released under the MIT License.