happy-opfs • Docs
happy-opfs / exists
function exists(path, options?): AsyncIOResult<boolean>
Checks whether a file or directory exists at the specified path.
Parameter | Type | Description |
---|---|---|
path |
string |
The path of the file or directory to check for existence. |
options ? |
ExistsOptions |
Optional existence options. |
AsyncIOResult
<boolean
>
A promise that resolves to an AsyncIOResult
indicating whether the file or directory exists.