るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.040秒)
トップページ > バージョン:2.3.0[x] > クエリ:File[x] > クエリ:Separator[x] > 種類:ライブラリ[x]

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file separator
  4. file path
  5. file truncate

検索結果

find (112.0)

ディレクトリ配下のファイルを探索するためのモジュールです。

ディレクトリ配下のファイルを探索するためのモジュールです。

=== 使い方

require "find"

Find.find('/foo','/bar') {|f| ...}

または

require "find"

include Find
find('/foo','/bar') {|f| ...}

以下は、ruby のアーカイブに含まれるサンプルスクリプト
(https://github.com/ruby/ruby/blob/master/sample/trojan.rb) をこのモジュールで書き換えたものです。

#! /usr/bin/env ...