Code example for File

Methods: exists, list

0
	} 
 
	private void extractResources(AppDetails appDetails) {
		try { 
			File resourcesDir = fileHelper.getKickstartrResourcesDir();
			if (resourcesDir.exists() || resourcesDir.list() == null || resourcesDir.list().length == 0) {
				ResourcesUtils.copyResourcesTo(resourcesDir, "org.eclipse.jdt.apt.core.prefs");
			} 
		} catch (IOException e) {
			LOGGER.error("an error occured during the resources extraction", e);
		} 
	} 
 
	private void createDirectory() { 
		LOGGER.info("generation of " + appDetails + " : " + appDetails);
 
		if (appDetails.isRestTemplate() || appDetails.isAcra()) {
			List<String> permissions = appDetails.getPermissions();
			permissions.add("android.permission.INTERNET");
		} 
		try {