Skip to content

Commit

Permalink
Merge pull request MrGreyfun#22 from MrGreyfun/greyfun
Browse files Browse the repository at this point in the history
Bug fix: a error is raised when refresh file display if there is a fold in the work_dir
  • Loading branch information
MrGreyfun authored Nov 3, 2023
2 parents 62370dd + c869259 commit 0526391
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 0526391

Please sign in to comment.