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