glennmatthews / cot

Common OVF Tool
MIT License
92 stars 23 forks source link

os.statvfs not available in Windows #79

Closed glennmatthews closed 5 years ago

glennmatthews commented 5 years ago

Since COT 2.0.0, the function COT.utilities.available_bytes_at_path() was added, which uses the os.statvfs() API, which is documented as only available on Unix (which appears to include Mac OS X). On Windows, this causes an error. We need to either find a valid alternative API for Windows or degrade behavior gracefully if no such alternative exists.

glennmatthews commented 5 years ago

Looks like psutil is probably the way to go.