atomicWrite

inline fun <T> Path.atomicWrite(sync: Boolean = true, f: (Path) -> T): T