Program: 161949
Project: 161949
Buggy source:
public void replaceAll(){
  if (!Files.exists(configBackupPath)) {
    try {
      Files.move(configPath,configBackupPath);
      Files.createDirectories(configPath);
      copy(Paths.get("String_Node_Str"),configPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      return;
    }
  }
  if (!Files.exists(customBackupPath)) {
    try {
      Files.move(customPath,customBackupPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      return;
    }
    try {
      Path resourcePath=Paths.get(tfdir,"String_Node_Str");
      Path scriptsPath=Paths.get(tfdir,"String_Node_Str");
      Files.createDirectories(resourcePath);
      Files.createDirectories(scriptsPath);
      copy(Paths.get("String_Node_Str",hudName,"String_Node_Str"),resourcePath);
      copy(Paths.get("String_Node_Str",hudName,"String_Node_Str"),scriptsPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
    Path materialsPath=Paths.get(tfdir,"String_Node_Str");
    try {
      if (skyboxFilename != null && !skyboxFilename.isEmpty()) {
        Files.createDirectories(materialsPath);
        replaceSkybox();
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      try {
        delete(materialsPath);
      }
 catch (      IOException e1) {
        log.log(Level.INFO,"String_Node_Str",e);
      }
    }
    try {
      if (replaceVo) {
        Path voPath=Paths.get(tfdir,"String_Node_Str");
        Files.createDirectories(voPath);
        copy(Paths.get("String_Node_Str"),voPath);
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
    try {
      Path miscPath=Paths.get(tfdir,"String_Node_Str");
      Files.createDirectories(miscPath);
      copy(Paths.get("String_Node_Str"),miscPath);
      if (replaceDomination) {
        copy(Paths.get("String_Node_Str"),miscPath);
      }
      if (replaceAnnouncer) {
        copy(Paths.get("String_Node_Str"),miscPath);
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
  }
}

Fixed version (ground truth):
public void replaceAll(){
  if (!Files.exists(configBackupPath)) {
    try {
      configPath.toFile().setWritable(true);
      Files.move(configPath,configBackupPath);
      Files.createDirectories(configPath);
      copy(Paths.get("String_Node_Str"),configPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      return;
    }
  }
  if (!Files.exists(customBackupPath)) {
    try {
      customPath.toFile().setWritable(true);
      Files.move(customPath,customBackupPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      return;
    }
    try {
      Path resourcePath=Paths.get(tfdir,"String_Node_Str");
      Path scriptsPath=Paths.get(tfdir,"String_Node_Str");
      Files.createDirectories(resourcePath);
      Files.createDirectories(scriptsPath);
      copy(Paths.get("String_Node_Str",hudName,"String_Node_Str"),resourcePath);
      copy(Paths.get("String_Node_Str",hudName,"String_Node_Str"),scriptsPath);
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
    Path materialsPath=Paths.get(tfdir,"String_Node_Str");
    try {
      if (skyboxFilename != null && !skyboxFilename.isEmpty()) {
        Files.createDirectories(materialsPath);
        replaceSkybox();
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
      try {
        delete(materialsPath);
      }
 catch (      IOException e1) {
        log.log(Level.INFO,"String_Node_Str",e);
      }
    }
    try {
      if (replaceVo) {
        Path voPath=Paths.get(tfdir,"String_Node_Str");
        Files.createDirectories(voPath);
        copy(Paths.get("String_Node_Str"),voPath);
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
    try {
      Path miscPath=Paths.get(tfdir,"String_Node_Str");
      Files.createDirectories(miscPath);
      copy(Paths.get("String_Node_Str"),miscPath);
      if (replaceDomination) {
        copy(Paths.get("String_Node_Str"),miscPath);
      }
      if (replaceAnnouncer) {
        copy(Paths.get("String_Node_Str"),miscPath);
      }
    }
 catch (    IOException e) {
      log.log(Level.INFO,"String_Node_Str",e);
    }
  }
}