Improve fs\path to create directory and put contents in file.