You are here : python_2ososstatvfs

os.statvfs() - os

             

The method statvfs() perform a statvfs system call on the given path.


  • path -- This is the path, whose statvfs information is required.


Syntax


os.statvfs(path)


Example


# !/usr/bin/python

import os, sys

# showing statvfs information of file "a1.py"
stinfo = os.statvfs('a1.py')

print stinfo


Output / Return Value

When we run above program, it produces following result:


posix.statvfs_result(f_bsize=4096, f_frsize=4096, f_blocks=1909350L, f_bfree=1491513L, f_bavail=1394521L, f_files=971520L, f_ffree=883302L, f_fvail=883302L, f_flag=0, f_namemax=255)


Limitations


Alternatives / See Also


Reference