Should provide create directory and writeFile if done of invalidatedProjects is not invoked with writeFileCallback