#2 - creating directory before trying to create file
Merge pull request #3 from blairconrad/2-create-directory-before-creating-file

#2 - creating directory before trying to create file