Re: Non-directory, non-file "files"

irb(main):010:0> File.file? ‘/dev/cdrom’
=> false
irb(main):011:0> File.directory? ‘/dev/cdrom’
=> false
irb(main):012:0> File.blockdev? ‘/dev/cdrom’
=> true

Ah ha, good to know.

The Windows files I’m finding also aren’t block devices, so that doesn’t
solve this particular mystery.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs