るりまサーチ

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

関連するキーワード

  1. _builtin
  2. shell
  3. pathname
  4. filetest.#readable?

ライブラリ

検索結果

File::Stat#readable? -> bool (18108)

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

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

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

File::Stat#world_readable? -> Fixnum | nil (6108)

If stat is readable 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("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"...