22件ヒット
[1-22件を表示]
(0.049秒)
別のキーワード
検索結果
-
FileTest
. # exist?(file) -> bool (18126.0) -
ファイルが存在する時に真を返します。そうでない場合、あるいはシステムコールに失敗した場合などには false を返します。
...表す文字列か IO オブジェクトを指定します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
例:
FileTest.exist?('/etc/passwd') # => true
FileTest.exist?('/etc') # => true
FileTest.exist?('/etc/no_such_fil......e') # => false
FileTest.exist?('/etc/no_such_directory') # => false... -
File
. exist?(path) -> bool (18114.0) -
FileTest.#exist? と同じです。
...FileTest.#exist? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。...