From: Daniel Berger Date: 2001-11-11T04:30:16+09:00 Subject: [ruby-talk:24840] Re: Looking for df interface "Brian F. Feldman" wrote in message news:200111101715.fAAHFj114694@green.bikeshed.org... > > Write an implementation for the system calls statfs(2) (File.statfs(path)) > and fstatfs(2) (File#statfs()). You'll want to also create a new > File::Statfs class that will return the struct statfs {}. It would be quite > easy :) > I thought about writing a class that was a wrapper for the sys/statfs.h header file (I think that's the name - might have it wrong), using Ruby's C API. That would avoid doing "system" calls, but has the drawback that it would make it *nix-only. Unfortunately, my Ruby knowledge is nowhere near good enough to start doing this. Looks like a future project for myself. :) Regards, Mr. Sunblade