1) Try checking for parent dirs first and creating if they aren't there when moving files from the legacy directory to the new one.