Closed ballenspectric closed 2 years ago
Disk cache space remaining is currently checked by shelling out to du and parsing the output. This can be done directly using os.scandir and the humanize package.
du
os.scandir
For context, du was returning different output in WSL, so doing it in Python provides better cross-platform support between different Linux variants.
Disk cache space remaining is currently checked by shelling out to
du
and parsing the output. This can be done directly usingos.scandir
and the humanize package.