るりまサーチ

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.277秒)
トップページ > クラス:File::Stat[x] > クエリ:world_writable?[x]

別のキーワード

  1. _builtin new
  2. _builtin to_s
  3. _builtin []
  4. _builtin inspect
  5. _builtin each

ライブラリ

検索結果

File::Stat#world_writable? -> Fixnum | nil (18108.0)

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).

...le 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"...