4件ヒット
[1-4件を表示]
(0.098秒)
クラス
-
File
:: Stat (2) - Pathname (2)
検索結果
先頭4件
-
File
:: Stat # readable? -> bool (63325.0) -
読み込み可能な時に真を返します。
読み込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).readable? #=> true
//} -
Pathname
# readable? -> bool (63307.0) -
FileTest.readable?(self.to_s) と同じです。
FileTest.readable?(self.to_s) と同じです。
@see FileTest.#readable? -
File
:: Stat # world _ readable? -> Integer | nil (27325.0) -
全てのユーザから読めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
全てのユーザから読めるならば、そのファイルのパーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/etc/passwd").world_readable? # => 420
sprintf("%o", m) # => "644"
//} -
Pathname
# world _ readable? -> bool (27307.0) -
FileTest.world_readable?(self.to_s) と同じです。
FileTest.world_readable?(self.to_s) と同じです。
@see FileTest.#world_readable?