def get_available_disk_space():
 stat_struct = os.statvfs(os.path.dirname(BACKUP_DIR_LOCATION))
 return (stat_struct[statvfs.F_BAVAIL] * stat_struct[statvfs.F_BSIZE])

def get_available_disk_space ( ) : stat_struct = os . statvfs ( os . path . dirname ( BACKUP_DIR_LOCATION ) ) return ( stat_struct [ statvfs . F_BAVAIL ] * stat_struct [ statvfs . F_BSIZE ] )
returns the amount of available disk space under /opt/appscale .