Skip to content

Commit

Permalink
fix(content): path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
esoadamo committed Nov 19, 2024
1 parent 5ccf799 commit bfbabb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def dir_to_json(path: Union[str, Path]) -> Content:

if os.path.isdir(path_full):
return {
'id': str(path.relative_to(path_base)),
'id': str(path_full.relative_to(path_base)),
'files': [f for f in os.listdir(path_full)
if (path_full / f).is_file()],
'dirs': [f for f in os.listdir(path_full)
Expand Down

0 comments on commit bfbabb4

Please sign in to comment.