Skip to content

Commit

Permalink
removed as_posix()
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBodor committed Feb 26, 2024
1 parent 1dbf35f commit 08be6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eit_dash/callbacks/load_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_parent_directory(stored_cwd, n_clicks, currentdir):
triggered_id = ctx.triggered_id
if triggered_id == ids.STORED_CWD:
return stored_cwd
return Path(currentdir).parent.as_posix()
return Path(currentdir).parent


@callback(Output(ids.CWD_FILES, "children"), Input(ids.CWD, "children"))
Expand All @@ -223,7 +223,7 @@ def list_cwd_files(cwd):
files = sorted(os.listdir(path), key=str.lower)
for i, file in enumerate(files):
filepath = Path(file)
full_path = (Path(cwd) / filepath).as_posix()
full_path = Path(cwd) / filepath

is_dir = Path(full_path).is_dir()
link = html.A(
Expand Down

0 comments on commit 08be6f5

Please sign in to comment.