Using the following two lines I create the file "tmp.txt" in each directory where file_name exist. Than I open the file and write into it an array which I created before:
tmp_file = File.expand_path(File.dirname(file_name)) + "/temp.txt"
File.open(tmp_file, 'w') {|f| f.write array.join("\n")}
How can I create now also a empty directory into the same directories where tmp.txt is created?
I tried something like this:
File.expand_path(File.dirname(file_name)) + FileUtils.mkdir("/NewDirectory")
"temp.txt"would be related to creating a file named"tmp.txt".