static bool dirContainsFile(File dir, S name) {
  ret newFile(dir, name).exists();
}