Await file write of contents into position.
Mkdir for temp file first, await properly.