I am trying to simply create a directory, but my code just will not accomplish it. It doesn't give me any errors but it doesn't create the directory neither. I thought that new File(path).mkdir(); would have done it for me, but it is not. Any suggestions.
public void timedStart() { SimpleDateFormat ft = new SimpleDateFormat("M/dd/yy hh:mm:ss a"); //3 spaces between testName = testNambx.getText(); time = timebx.getText(); tStartTime = time; String path = destpath + testName; new File(path).mkdir(); try { sdate = ft.parse(time); Timer timer = new Timer(); timer.schedule(new CoFile(), sdate); } catch(Exception e) { e.printStackTrace(); } }