From: Brian Candler Date: 2012-09-02T16:53:16+09:00 Subject: Re: Ruby module to get df -h output Peter Hickman wrote in post #1074238: > I doubt that there is a gem that does nothing but this given the > trivial nature of the problem. http://sysutils.rubyforge.org/ -> https://github.com/djberg96/sys-filesystem > There is however a simpler solution. The File class: > > irb(main):001:0> File.exists?("/dev/disk2s2") > => true But that doesn't tell you if it is mounted or not. -- Posted via http://www.ruby-forum.com/.