lib/relaton_3gpp/data_fetcher.rb in relaton-3gpp-1.13.0 vs lib/relaton_3gpp/data_fetcher.rb in relaton-3gpp-1.14.0
- old
+ new
@@ -26,10 +26,10 @@
# @param [Strin] format format of output files (xml, yaml, bibxml), default: yaml
#
def self.fetch(output: "data", format: "yaml")
t1 = Time.now
puts "Started at: #{t1}"
- FileUtils.mkdir_p output unless Dir.exist? output
+ FileUtils.mkdir_p output
new(output, format).fetch
t2 = Time.now
puts "Stopped at: #{t2}"
puts "Done in: #{(t2 - t1).round} sec."
end