blockdev? Returns true if the file is a block device : blockdev « File Directory « Ruby






blockdev? Returns true if the file is a block device


File.stat("testfile").blockdev?  
File.stat("/dev/disk0").blockdev? 

 

Related examples in the same category