method
translate_dir

1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Translator
- 1.1.4 (0)
- 1.1.12
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
translate_dir(from, to)
public
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