Skip to content

Commit

Permalink
Backup config directory when IDs are resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
SS111 committed Jul 8, 2013
1 parent 641d7f5 commit 70932dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/com/github/ss111/ConflictResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ public static void resolveConflicts(String path, ArrayList<Integer> unusedBlocks

File configDirectory = new File(path);

try {

FileUtils.copyDirectory(configDirectory, new File(path.replace("config", "config_bak")));

} catch (Exception e) {

e.printStackTrace();
}

File[] configFiles = configDirectory.listFiles();

for (File configFile : configFiles) {
Expand Down

0 comments on commit 70932dd

Please sign in to comment.