Flowdock
method

translate_dir

Importance_0
1.1.4 - Show latest stable - 0 notes - Class: Spec::Translator
translate_dir(from, to) public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/translator.rb, line 15
    def translate_dir(from, to)
      FileUtils.mkdir_p(to) unless File.directory?(to)
      Dir["#{from}/*"].each do |sub_from|
        path = sub_from[from.length+1..-1]
        sub_to = File.join(to, path)
        translate(sub_from, sub_to)
      end
    end
Register or log in to add new notes.