Create parent directories when starting a new file.