Skip to content

statvfs is not available on windows #171

Closed
@silentiumsi

Description

@silentiumsi

statvfs was introduced in the following commit:
ec8cc1e

statvfs is not available on Windows as far as I can gather.

AttributeError: module 'os' has no attribute 'statvfs'

A simple fix may be something like:

if hasattr(os, 'statvfs'):
    statvfs = wrap(os.statvfs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions