Create a directory if it does not exist and then create the files in that directory as well
问题 Condition is if directory exists it has to create files in that specific directory with out creating a new directory. The below code only creating a file with new directory but not for existing directory . For example the directory name would be like "GETDIRECTION" String PATH = "/remote/dir/server/"; String fileName = PATH.append(id).concat(getTimeStamp()).append(".txt"); String directoryName = PATH.append(this.getClassName()); File file = new File(String.valueOf(fileName)); File directory =