Skip to content

Commit 8372079

Browse files
committed
Use non-deprecated exist?
1 parent e640f4f commit 8372079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/docurium/docparser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def parse_file(orig_filename, files)
1818
unsaved = files.map do |name, contents|
1919
full_path = File.join(tmpdir, name)
2020
dirname = File.dirname(full_path)
21-
FileUtils.mkdir_p(dirname) unless Dir.exists? dirname
21+
FileUtils.mkdir_p(dirname) unless Dir.exist? dirname
2222
File.new(full_path, File::CREAT).close()
2323

2424
UnsavedFile.new(full_path, contents)

0 commit comments

Comments
 (0)