One solution would be to use
FileSys::Diskspace Alternatively, you might try calling "df -k" or "dir" (depending on your OS) and parsing it itself, if you have
problems getting FileSys::Diskspace to work on your platform (It hasn't been updated for awhile)