def disk_usage(path):    	
    output = Popen(['df', '-k', path], stdout=PIPE).communicate()[0]
    try:
        df = output.splitlines()[2].split()
        device = output.splitlines()[1]
        (size, used, free, percent, mountpoint) = df
    except IndexError:
        df = output.splitlines()[1].split()
        (device, size, used, free, percent, mountpoint) = df
    return (device, int(size), int(used), int(free), percent, mountpoint)
Install one or more extensions.
dataset/ETHPy150Open cgoldberg/linux-metrics/linux_metrics/disk_stat.py/disk_usage--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/core/commands/deploy.py/DeployCommand.install_extensions