Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
granawkins committed Feb 16, 2024
1 parent 54108d2 commit 07a4ac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rawdog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def _get_cwd_info(self, max_items=100):
).strftime("%Y-%m-%d %H:%M:%S")
size, unit = 0, ""
try:
size = len(list(item.iterdir())) if item.is_dir() else item.stat().st_size
size = (
len(list(item.iterdir())) if item.is_dir() else item.stat().st_size
)
unit = " bytes" if item.is_file() else " items"
except Exception:
pass
Expand Down

0 comments on commit 07a4ac5

Please sign in to comment.