12件ヒット
[1-12件を表示]
(0.017秒)
別のキーワード
ライブラリ
- ビルトイン (12)
検索結果
-
File
:: Stat # readable? -> bool (18108.0) -
読み込み可能な時に真を返します。
...読み込み可能な時に真を返します。
p File::Stat.new($0).readable? #=> true... -
File
:: Stat # world _ readable? -> Integer | nil (6108.0) -
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"...