5 6 7 8 9
# File 'lib/voicemaker/extensions/file.rb', line 5 def deep_write(file, content) dir = File.dirname file FileUtils.mkdir_p dir unless Dir.exist? dir File.write file, content end