This is probably a bit clearer way to state the above assertion
batch = scandir(basedir) st = os.statvfs(basedir) high = (st.f_blocks - st.f_bfree) * st.f_frsize low = (st.f_blocks - st.f_bfree - batch.count) * st.f_frsize assert low <= batch.size <= high
This is probably a bit clearer way to state the above assertion
batch = scandir(basedir)
st = os.statvfs(basedir)
high = (st.f_blocks - st.f_bfree) * st.f_frsize
low = (st.f_blocks - st.f_bfree - batch.count) * st.f_frsize
assert low <= batch.size <= high