Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 659 Bytes

emptyDir.md

File metadata and controls

29 lines (17 loc) · 659 Bytes

happy-opfsDocs


happy-opfs / emptyDir

Function: emptyDir()

function emptyDir(dirPath): AsyncVoidIOResult

Empties the contents of a directory at the specified path.

Parameters

Parameter Type Description
dirPath string The path of the directory to empty.

Returns

AsyncVoidIOResult

A promise that resolves to an AsyncIOResult indicating whether the directory was successfully emptied.

Defined in

fs/opfs_ext.ts:152