in src/_Private/Filesystem.hack [55:64]
public static function writeFileIfChanged(string $path, string $data): bool {
if (\file_exists($path)) {
$current = self::readFile($path);
if ($current === $data) {
return false;
}
}
self::writeFile($path, $data);
return true;
}