Skip to content

Commit

Permalink
Bug fix: a error is raised when refresh file display if there is a fo…
Browse files Browse the repository at this point in the history
…ld in the work_dir
  • Loading branch information
MrGreyfun committed Nov 3, 2023
1 parent 62370dd commit c869259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/web_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def refresh_file_display(state_dict: Dict) -> List[str]:
filenames = os.listdir(work_dir)
paths = []
for filename in filenames:
paths.append(
os.path.join(work_dir, filename)
)
path = os.path.join(work_dir, filename)
if not os.path.isdir(path):
paths.append(path)
return paths


Expand Down

0 comments on commit c869259

Please sign in to comment.