code: public static Path getNextPath(String prefix) {
          Path path;
  
          do {
              path = Paths.get(String.format("%s%s", prefix, Integer.toString(nextDumpPathSuffix)));
              nextDumpPathSuffix++;
          } while (Files.exists(path));
  
          return path;
      }
docs: Get the next sequential Path for a binary dump file, ensuring we don't overwrite any existing files.
  @param prefix The start of the file name
  @return Next sequential Path