File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ import {
75
75
updateWineVersionInfos ,
76
76
wineDownloaderInfoStore
77
77
} from './wine/manager/utils'
78
- import { readdir , stat } from 'fs/promises'
78
+ import { readdir , lstat } from 'fs/promises'
79
79
import { getHeroicVersion } from './utils/systeminfo/heroicVersion'
80
80
import { backendEvents } from './backend_events'
81
81
import { wikiGameInfoStore } from './wiki_game_info/electronStore'
@@ -1188,8 +1188,11 @@ function removeFolder(path: string, folderName: string) {
1188
1188
}
1189
1189
1190
1190
async function getPathDiskSize ( path : string ) : Promise < number > {
1191
- const statData = await stat ( path )
1191
+ const statData = await lstat ( path )
1192
1192
let size = 0
1193
+ if ( statData . isSymbolicLink ( ) ) {
1194
+ return 0
1195
+ }
1193
1196
if ( statData . isDirectory ( ) ) {
1194
1197
const contents = await readdir ( path )
1195
1198
You can’t perform that action at this time.
0 commit comments