code: protected boolean createDirectoryIfNotExists(Path path) throws IOException {
          if(!Files.exists(path)) {
              Files.createDirectories(path);
              return true;
          }
          else {
              return false;
          }
      }
docs: Creates the directory in the target location if it does not exist.
  
  @param path
  @return
  @throws IOException