Sync request after createFile and writeFile