if dir is already present, print WARNING instead of ERROR

master
melvin 2011-07-29 14:20:00 +08:00
parent 092e1c551b
commit a3aa69f9ba
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class DeckUtils {
if (!deckFolderFile.exists()) {
final boolean isCreated = deckFolderFile.mkdir();
if (!isCreated) {
System.err.println("ERROR! Unable to create " + getDeckFolder());
System.err.println("WARNING. Unable to create " + getDeckFolder());
}
}
}

View File

@ -49,7 +49,7 @@ public class DownloadImageFiles extends ArrayList<DownloadImageFile> {
imagesPathFile=new File(gamePathFile,line.substring(1).trim());
final boolean isCreated = imagesPathFile.mkdir();
if (!isCreated) {
System.err.println("ERROR! Unable to create " + imagesPathFile);
System.err.println("WARNING. Unable to create " + imagesPathFile);
}
} else {
final String parts[]=line.trim().split(";");