using os.stat to determine stat.st_blocks on OS that supports it?
steingra at pprd.abbott.com
Mon May 8 16:53:45 EDT 2000
In article <20000508221835.B13281 at xs4all.nl>,
Thomas Wouters <thomas at xs4all.net> wrote:
>> I'm trying to write a disk usage monitoring program. As part of it, I
>> need to determine actual file size/disk-blocks-used.
> (bsize, frsize, blocks, bfree, bavail, files, ffree, favail, flag, namemax)
>Perform a statvfs system call on the given path.
os.statvfs does not return file-specific data, its returns filesystem
data. I need the disk usage for individual filenames, not for the
Andy Steingruebl | e-mail: steingra at pprd.abbott.com
Unix Systems Admin/Programmer | phone: (847) 935-4728
Unix/Network Security | fax: (847) 935-0142
Abbott Laboratories, PPDR&D | post: 100 Abbott Park Road, D472 - AP9A
More information about the Python-list