Fix missing dir error. Begin investigating "double path concatenation" issue

This commit is contained in:
Netscape Navigator 2020-04-25 10:13:51 -05:00
parent e0d0739af6
commit 33429e3f0b
1 changed files with 2 additions and 0 deletions

View File

@ -226,7 +226,9 @@ module Pigeon
path
end
full_path = File.join(dir, file_name)
raise "HERE!" if dir.include?(".")
unless File.file?(full_path)
FileUtils.makedirs(dir)
File.write(full_path, data)
end
end