Flowdock
method

world_writable?

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: File::Stat
world_writable?() public

If stat is writable by others, returns an integer representing the file permission bits of stat. Returns nil otherwise. The meaning of the bits is platform dependent; on Unix systems, see stat(2).

m = File.stat("/tmp").world_writable?         #=> 511
sprintf("%o", m)                              #=> "777"
Show source
Register or log in to add new notes.