Comment 1 for bug 863822

Revision history for this message
Jason Gerard DeRose (jderose) wrote : Re: scandir() should include os.statvfs() info for card being imported

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