るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. _builtin stat
  2. csv stat
  3. gc stat
  4. pathname stat
  5. stat mtime

検索結果

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 ...