lib/extension.rb in narou-3.8.1 vs lib/extension.rb in narou-3.8.2

- old
+ new

@@ -25,9 +25,10 @@ def File.write(path, string, *options, mode: nil) return super if mode dirpath = File.dirname(path) + FileUtils.makedirs(dirpath) unless Dir.exist?(dirpath) temp_path = File.join(dirpath, SecureRandom.hex(15)) if File.extname(path) == ".yaml" && File.basename(dirpath) != Downloader::SECTION_SAVE_DIR_NAME backup = "#{path}.backup" end