blockdev?

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
doc_ruby_on_rails
2015-04-06 06:06:02
Comments
Leave a Comment

Please login to continue.