Question : java create directory if not exists
Answered by : no-name-pro
String path = ...
File pathAsFile = new File(path);
if (!Files.exists(Paths.get(path))) { pathAsFile.mkdir();
}
Source : | Last Update : Mon, 04 May 20
Answered by : no-name-pro
String path = ...
File pathAsFile = new File(path);
if (!Files.exists(Paths.get(path))) { pathAsFile.mkdir();
}
Source : | Last Update : Mon, 04 May 20