Check
This commit is contained in:
parent
333f364d38
commit
555eda0619
1 changed files with 4 additions and 2 deletions
|
@ -303,8 +303,10 @@ const setupTrayItem = (mainWindow: BrowserWindow) => {
|
|||
*/
|
||||
const deleteLegacyDiskCacheDirIfExists = async () => {
|
||||
const removeIfExists = async (dirPath: string) => {
|
||||
log.info(`Removing legacy disk cache from ${dirPath}`);
|
||||
await fs.rm(dirPath, { recursive: true });
|
||||
if (existsSync(dirPath)) {
|
||||
log.info(`Removing legacy disk cache from ${dirPath}`);
|
||||
await fs.rm(dirPath, { recursive: true });
|
||||
}
|
||||
};
|
||||
// [Note: Getting the cache path]
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue