lib/docurium/docparser.rb in docurium-0.5.0 vs lib/docurium/docparser.rb in docurium-0.6.0
- old
+ new
@@ -16,10 +16,10 @@
tmpdir = Dir.mktmpdir()
unsaved = files.map do |name, contents|
full_path = File.join(tmpdir, name)
dirname = File.dirname(full_path)
- FileUtils.mkdir_p(dirname) unless Dir.exists? dirname
+ FileUtils.mkdir_p(dirname) unless Dir.exist? dirname
File.new(full_path, File::CREAT).close()
UnsavedFile.new(full_path, contents)
end