F
writeFile
Writes content to a file within documentsPath.
function writeFile(path: string, content: string, encoding?: DCDFileManagerEncoding): Promise<string>Parameters
| Name | Type | Description |
|---|---|---|
| path | string | The file path to write to, relative to documentsPath. |
| content | string | The content to write. |
| encoding? | DCDFileManagerEncoding | The encoding to write the file with. |
Returns
Promise<string>A promise resolving once the file is written.