Pre-creating the directories before moving the file