stat, exists, writeFile