るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.007秒)
トップページ > クエリ:exist?[x] > ライブラリ:pathname[x]

別のキーワード

  1. _builtin exist?
  2. pathname exist?
  3. dir exist?
  4. file exist?
  5. strscan exist?

クラス

キーワード

検索結果

Pathname#exist? -> bool (18103.0)

FileTest.exist?(self.to_s) と同じです。

...FileTest.exist?(self.to_s) と同じです。


@see FileTest.#exist?...

Pathname#delete -> Integer (14.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("/path/to/sample")
pathname
.exist? # => true
pathname
.unlink # => 1
pathname
.exist? # => false
//}...

Pathname#unlink -> Integer (14.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("/path/to/sample")
pathname
.exist? # => true
pathname
.unlink # => 1
pathname
.exist? # => false
//}...