# File lib/facets/core/fileutils/stage.rb, line 170 def transfer_rules(source,rules,subs=nil) trans={} Dir.chdir(source) do parse_rules(rules,subs).each do |rule| from,glob,to=*rule to=from unless to #??? files=Dir.glob(File.join(from,glob)) files.each do |file| trans[file]=File.join(to,file.sub(from,'')) end end end return trans end