Is there a way to print the current “chmod flags” for a given Dir in Ruby?
I’m not an expert on permissions so forgive the terminology, but I’d like to get all possible information about a directory (is it read-only, what are the permissions, etc etc).
Edit: I need this to work in Ruby 1.8.6
http://ruby-doc.org/core-1.9.3/File.html#method-c-world_readable-3F
Ruby 1.8.6 solution: