Skip to content

Commit

Permalink
удаление временной директории
Browse files Browse the repository at this point in the history
  • Loading branch information
ritds committed Mar 31, 2022
1 parent 0fd5fce commit 19b5687
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions figma_actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,19 @@ async function downloadFile(session, file, settings) {
logger.info(`File ${title} is not downloaded during timeout`)
}
}

if (fs.existsSync(tmpDownloadDir)) {
fs.rmdirSync(tmpDownloadDir);
}

} catch (err) {
console.error(err);
return UNKNOWN_ERROR;
}

try {
if (fs.existsSync(tmpDownloadDir)) {
fs.rmdirSync(tmpDownloadDir);
}
} catch (err) {

}

return 0;
}
Expand Down

0 comments on commit 19b5687

Please sign in to comment.