Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 882 Bytes

writeFile.md

File metadata and controls

34 lines (22 loc) · 882 Bytes

happy-opfsDocs


happy-opfs / writeFile

Function: writeFile()

function writeFile(
   filePath, 
   contents, 
   options?): AsyncVoidIOResult

Writes content to a file at the specified path.

Parameters

Parameter Type Description
filePath string The path of the file to write to.
contents WriteFileContent The content to write to the file.
options? WriteOptions Optional write options.

Returns

AsyncVoidIOResult

A promise that resolves to an AsyncIOResult indicating whether the file was successfully written.

Defined in

fs/opfs_core.ts:217