spectriclabs / elastic_datashader

:earth_americas: Datashader enabled TMS server with ElasticSearch backend
Apache License 2.0
4 stars 1 forks source link

Remove calls to du #23

Closed ballenspectric closed 2 years ago

ballenspectric commented 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.

ballenspectric commented 2 years ago

For context, du was returning different output in WSL, so doing it in Python provides better cross-platform support between different Linux variants.