happy-opfs • Docs
happy-opfs / createFile
function createFile(filePath): AsyncVoidIOResult
Creates a new file at the specified path same as touch
.
Parameter | Type | Description |
---|---|---|
filePath |
string |
The path of the file to create. |
AsyncVoidIOResult
A promise that resolves to an AsyncIOResult
indicating whether the file was successfully created.