Testing single files
test ?e, "/usr/bin/ruby" # File.exist?("/usr/bin/ruby")
test ?f, "/usr/bin/ruby" # File.file?("/usr/bin/ruby")
test ?d, "/usr/bin/ruby" # File.directory?("/usr/bin/ruby")
test ?r, "/usr/bin/ruby" # File.readable?("/usr/bin/ruby")
test ?w, "/usr/bin/ruby" # File.writeable?("/usr/bin/ruby")
test ?M, "/usr/bin/ruby" # File.mtime("/usr/bin/ruby")
test ?s, "/usr/bin/ruby" # File.size?("/usr/bin/ruby")
Related examples in the same category