stat.blockdev? â true or false
Instance Public methods
Returns true
if the file is a block device, false
if it isn't or if the operating system doesn't support this
feature.
File.stat("testfile").blockdev? #=> false File.stat("/dev/hda1").blockdev? #=> true
Please login to continue.