def get_disk_usage(path):
    "Return disk usage statistics about the given path.\n\n    Returned valus is a named tuple with attributes 'total', 'used' and\n    'free', which are the amount of total, used and free space, in bytes.\n    \n    Source: http://stackoverflow.com/a/7285483/975118\n    "
    st = os.statvfs(path)
    free = (st.f_bavail * st.f_frsize)
    total = (st.f_blocks * st.f_frsize)
    used = ((st.f_blocks - st.f_bfree) * st.f_frsize)
    return _ntuple_diskusage(total, used, free)
Return disk usage statistics about the given path.

Returned valus is a named tuple with attributes 'total', 'used' and
'free', which are the amount of total, used and free space, in bytes.

Source: http://stackoverflow.com/a/7285483/975118
def get_disk_usage(path):
    "Return disk usage statistics about the given path.\n\n    Returned valus is a named tuple with attributes 'total', 'used' and\n    'free', which are the amount of total, used and free space, in bytes.\n    \n    Source: http://stackoverflow.com/a/7285483/975118\n    "
    st = os.statvfs(path)
    free = (st.f_bavail * st.f_frsize)
    total = (st.f_blocks * st.f_frsize)
    used = ((st.f_blocks - st.f_bfree) * st.f_frsize)
    return _ntuple_diskusage(total, used, free)