Create parent directory before creating new files