最速Rubyリファレンスマニュアル検索!
すべて(2)
1.9.2(1)
1.9.3(1)
2件ヒット
[1-2件を表示]
(0.007秒)
トップページ
>
クラス:
Dir
>
:exists?
関連するキーワード
_
builtin
shell
ライブラリ
ビルトイン
(2)
検索結果
先頭1件
Dir
.
exists?(file
_
name) -> bool
Dir
.
exists?(file
_
name) -> bool
(15101)
1.9.2
1.9.3
特異メソッド
file_name で与えられたディレクトリが存在する場合に真を返します。 そうでない場合は、偽を返します。
...
レクトリが存在する場合に真を返します。
そうでない場合は、偽を返します。
@param file_name 存在を確認したいディレクトリ名。
Dir
.exist?(".") # => true
Dir
.
exists?
(".") # => true
File.
dir
ectory?(".") # => true
@see File.
dir
ectory?
...
File.directory?