Skip to content

Commit 64de0a0

Browse files
committed
fix(browser): skip invalid symbolic links
1 parent df006c5 commit 64de0a0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/e3sm_quickview/components/file_browser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import json
22
import re
33
from pathlib import Path
4+
45
from paraview import simple
5-
from trame.widgets import vuetify3 as v3, html
66
from trame.app import TrameComponent
7+
from trame.widgets import html
8+
from trame.widgets import vuetify3 as v3
79

810
DIRECTORY = dict(icon="mdi-folder", type="directory")
911
GROUP = dict(icon="mdi-file-document-multiple-outline", type="group")
@@ -108,6 +110,8 @@ def listing(self):
108110
]
109111
for file_name in file_listing:
110112
f = self._current_path / file_name
113+
if not f.exists():
114+
continue
111115
stats = f.stat()
112116

113117
# Group or file?

0 commit comments

Comments
 (0)