code: public static File checkFolderPath(final String path, final boolean create) {
  		final File file = new File(path);
  		if (!file.exists()) {
  			if (create) {
  				file.mkdir();
  			}
  			return null;
  		}
  		return file;
  	}
docs: ////////////////////////////////////////////////////////////////////