Skip to content

Commit

Permalink
feat: use del asyncrhonously
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Jul 10, 2023
1 parent dfdacad commit 68a4e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export async function cleanupTempFiles(): Promise<void> {
for (const file of files) {
if (file.endsWith('.tmp') === true || file.startsWith('OSL_PIPE')) {
try {
del.sync([`/tmp/${file}`, `/tmp/${file}/*`], {force: true});
await del([`/tmp/${file}`, `/tmp/${file}/*`], {force: true});
// eslint-disable-next-line no-empty
} catch (error) {}
}
Expand Down

0 comments on commit 68a4e2c

Please sign in to comment.