るりまサーチ

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

別のキーワード

  1. _builtin writable?
  2. _builtin writable_real?
  3. _builtin world_writable?
  4. shell writable?
  5. pathname writable?

ライブラリ

検索結果

File::Stat#writable? -> bool (18108.0)

書き込み可能な時に真を返します。

...書き込み可能な時に真を返します。

p File::Stat.new($0).writable? #=> true...

File::Stat#world_writable? -> Fixnum | nil (6108.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"...