Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String getOutputDir(String projName){
- String newPath = "Projects" + File.separator + projName;
- File pathFile = new File(newPath);
- int i = 1;
- while(pathFile.exists()){
- pathFile = new File(newPath + "-" + 1);
- i++;
- }
- newPath += "-" + Integer.toString(i);
- newPath += File.separator + "src";
- return newPath;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement