From: Le Wang (nospam) Date: 2002-01-01T09:43:40+09:00 Subject: [ruby-talk:29919] Re: How to check free diskspace? aargh, `df #{Dir.pwd}`.split("\n")[1].split[1] it is then. This is ugly. -lw On Mon, 31 Dec 2001 22:09:21 GMT, "Mark Hahn" wrote: > >In both Ruby and Java, space-checking in volumes is missing. For Java I had >to write a different native extension for each platform. In Ruby you can >use system() (as you suggest)but it is still platform dependent. > >This is all quite weird since the concept of how many bytes are free on a >volume is a quite platform-free concept. > >-----Original Message----- >From: Le Wang [mailto:lewang@?.?.bigfoot.com (nospam)] >Sent: Monday, December 31, 2001 1:23 PM >To: ruby-talk ML; undisclosed-recipients: >Subject: [ruby-talk:29895] How to check free diskspace? > > >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? > >Thanks >-lw