I\'m trying to check if a directory exists, if that happens I want to give it another number, for example, if \"folderX\" exists I want to create a new one called \"FolderX1\",
String folderPrefix = "folder";
int folderSuffix = 0;
File fa = new File(folderPrefix + folderSuffix);
while (fa.exists()) {
fa = new File(folderPrefix + folderSuffix++);
}