るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.184秒)

別のキーワード

  1. pathname glob
  2. pathname find
  3. pathname sub
  4. pathname descend
  5. pathname ascend

ライブラリ

クラス

キーワード

検索結果

Pathname#exist? -> bool (45202.0)

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

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


@see FileTest.#exist?...

Pathname#delete -> Integer (27249.0)

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

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

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

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

Pathname#unlink -> Integer (24149.0)

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

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

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

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