If a non-existing file name is given, the file and all folders to it are created.