happy-opfs • Docs
happy-opfs / pruneTemp
function pruneTemp(expired): AsyncVoidIOResult
Prune the temporary directory and delete all expired files.
Parameter | Type | Description |
---|---|---|
expired |
Date |
The date to determine whether a file is expired. |
AsyncVoidIOResult
A promise that resolves to an AsyncVoidIOResult
indicating whether the temporary directory was successfully pruned.