Skip to content

Commit eff6521

Browse files
committed
dont overwrite base.cfg case.fg folders.cfg
1 parent fc44cd0 commit eff6521

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/com/jsoftware/j/android/JConsoleApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ protected void copyFiles(File file, File file2) throws IOException
802802
for (File file3 : file.listFiles()) {
803803
int n;
804804
File file4 = new File((Object)file2 + "/" + file3.getName());
805+
if(file.getName().equals("config") && (file3.getName().equals("base.cfg")||file3.getName().equals("case.cfg")||file3.getName().equals("folders.cfg")) && file4.exists()) continue;
805806
if (!file4.isFile() && file4.exists()) continue;
806807
FileInputStream fileInputStream = new FileInputStream(file3);
807808
FileOutputStream fileOutputStream = new FileOutputStream((Object)file2 + "/" + file3.getName());

0 commit comments

Comments
 (0)