Skip to content

Commit

Permalink
Make cache optional
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Jan 13, 2025
1 parent 451dc8f commit c09023a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions universql/lake/fsspec_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def sizeof_fmt(num, suffix="B"):
def get_friendly_disk_usage(storage: str, debug=False) -> str:
global last_free
global first_free
if not os.path.exists(storage):
return ''
usage = psutil.disk_usage(storage)
if first_free is None:
first_free = usage.free
Expand Down

0 comments on commit c09023a

Please sign in to comment.