F
exists
Checks whether a file exists, resolving relative paths against documentsPath.
function exists(path: string, inDocuments?: boolean): Promise<boolean>Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The file path to check, relative to documentsPath unless |
| inDocuments? | boolean | Whether to resolve |
Returns
Promise<boolean>A promise resolving to whether the file exists.