method

for_matching_files

ruby latest stable - Class: Sys

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

for_matching_files(wildcard, dest_dir)
private

No documentation available.

# File lib/rake/contrib/sys.rb, line 174
  def for_matching_files(wildcard, dest_dir)
    Dir[wildcard].each do |fn|
      dest_file = File.join(dest_dir, fn)
      parent = File.dirname(dest_file)
      makedirs(parent) if ! File.directory?(parent)
      yield(fn, dest_file)
    end
  end