Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ export async function deleteFoldersFromOPFS(folderPaths: string[]) {
}

export async function purgeOldFilesFromOPFS(maxAgeMs?: number): Promise<void> {
// If the maxAgeMs value is null, clear the OPFS.
// If the user selected to purge 'All' OPFS data, the maxAgeMs will be null.
if (!maxAgeMs) {
try {
const rootHandle = await getOPFSRootHandle();
Expand Down