るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file truncate
  4. digest file
  5. cgi file_field

検索結果

FileTest.#readable?(file) -> bool (45331.0)

ファイルがカレントプロセスにより読み込み可能な時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...は false を返します。

@param file ファイル名を表す文字列を指定します。

//emlist[例][ruby]{
I
O.write("testfile", "")
File
.chmod(0644, "testfile")
FileTest
.readable?("testfile") # => true
File
.chmod(0200, "testfile")
FileTest
.readable?("testfile") # => false
//}...

FileTest.#world_readable?(path) -> Integer | nil (33206.0)

path が全てのユーザから読めるならばそのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。

...を表す
整数を返します。そうでない場合は nil を返します。

整数の意味はプラットフォームに依存します。

@param path パスを表す文字列を指定します。

m = FileTest.world_readable?("/etc/passwd")
"%o" % m # =>...

File.readable?(path) -> bool (30116.0)

FileTest.#readable? と同じです。

...
FileTest
.#readable? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

Shell::Filter#readable?(file) -> bool (21329.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...

Shell#readable?(file) -> bool (18329.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...

絞り込み条件を変える

Shell::CommandProcessor#readable?(file) -> bool (18329.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#readable?...