mkdir -p the dirname, not the file.