[Baypiggies] Number of inodes on a volume?

Asher Langton langton2 at llnl.gov
Wed Feb 3 02:25:15 CET 2010


On Feb 2, 2010, at 5:13 PM, Glen Jarvis 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?


Take a look at os.statvfs().


-Asher


More information about the Baypiggies mailing list