From: Mathieu Bouchard Date: 2002-01-01T06:59:26+09:00 Subject: [ruby-talk:29900] Re: How to check free diskspace? On Tue, 1 Jan 2002, Le Wang wrote: > Hi all, > I've checked "Programming Ruby", and searched the ML to no avail. So > how do you check free disk space, other than to parse 'df' output? Mount = Struct.new( :device, :path, :fs_type, :options, :freq, :passno) mounts = File.open("/etc/mtab") {|f| f.map {|x| Mount.new(*x.chomp.split) }} ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju