world_writable? -> Integer | nilRuby 1.9.3 から[permalink][rdoc][edit]() → Integer?-
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
m = File.stat("/tmp").world_writable? # => 511 p sprintf("%o", m) # => "777"
world_writable? -> Integer | nilRuby 1.9.3 から[permalink][rdoc][edit]() → Integer?全てのユーザから書き込めるならば、そのファイルのパーミッションを表す整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
m = File.stat("/tmp").world_writable? # => 511
p sprintf("%o", m) # => "777"