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