eb710 has asked for the wisdom of the Perl Monks concerning the following question:

I'm building a distributed processing application that will run on Linux, Mac OS X and Windows (in a Cygwin environment). I'm looking for a way to collect information on available disk space in each of these environments. It looks like Filesys::Statfs does some of what I want, but I also need the next level above that. I want to find all of the (writable, local) file systems on the machine, not just the available space in a single directory. Has anyone dealt with these issues before on one or all of these platforms?

Replies are listed 'Best First'.
Re: Cross-platform disk space checking
by tachyon (Chancellor) on Oct 12, 2004 at 23:44 UTC
    df (disk free) system call certainly works on Linux and Cygwin, and I would presume OS X which is *nix based. Filesys::DiskFree provides an interface to this.

    cheers

    tachyon

Re: Cross-platform disk space checking
by Joost (Canon) on Oct 12, 2004 at 22:59 UTC