Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 657 Bytes

createFile.md

File metadata and controls

29 lines (17 loc) · 657 Bytes

happy-opfsDocs


happy-opfs / createFile

Function: createFile()

function createFile(filePath): AsyncVoidIOResult

Creates a new file at the specified path same as touch.

Parameters

Parameter Type Description
filePath string The path of the file to create.

Returns

AsyncVoidIOResult

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

Defined in

fs/opfs_core.ts:15