write-file

Writing a file to disk, creates intermediate directories in the destination path if they dont already exist.