Code example for File

Methods: existsmkdirstoString

0
	    if(fDataDirectory == null)
	    { 
	        throw new RuntimeException("mandatory parameter dataDirectory is null");
	    } 
 
		File log = new File(fLogDirectory);
		if (!log.exists())
		{ 
			logger.info("creating log data directory:" + log.toString());
			log.mkdirs();
		} 
		File data = new File(fDataDirectory);
		if (!data.exists())
		{ 
			logger.info("creating data directory:" + data.toString());
			data.mkdirs();
		} 
	} 
 
	/** 
Connect your IDE to all the code out there  Get Codota for Java