Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java create directory if not exists

String path = ...
File pathAsFile = new File(path);

if (!Files.exists(Paths.get(path))) {
	pathAsFile.mkdir();
}
 
PREVIOUS NEXT
Tagged: #java #create #directory #exists
ADD COMMENT
Topic
Name
8+1 =