[Baypiggies] Number of inodes on a volume?
tnm800 at gmail.com
Wed Feb 3 02:26:47 CET 2010
I suppose there are a few ways; I'd say statvfs is probably the best way.
If you want to try returning the free bytes, how about:
the_data = os.statvfs(path)
return the_data[statvfs.F_BSIZE] * the_data[statvfs.F_BFREE]
On Tue, Feb 2, 2010 at 5:13 PM, Glen Jarvis <glen at glenjarvis.com> wrote:
> I have a quick question to this brilliant group :)
> How do I, using pure python, get the number of inodes free on a volume
> for a particular mount?
> Basically, is there an equivalent to df -i in Python? Is this
> somewhere in stat and I can't find it?
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies