code: private static void createDirectory(Path path) throws IOException {
  		try {
  			Files.createDirectory(path);
  		} catch (FileAlreadyExistsException e) {
  			if (!Files.isDirectory(path)) {
  				throw e;
  			}
  		}
  	}
docs: Create a directory at the given path if it does not exist yet.
  
  @param path
  the path to the directory
  @throws IOException
  if it was not possible to create a directory at the given
  path