docs: private static String getAbsolutePath(String directory) {
          String realPath = Paths.get(directory).toAbsolutePath().toString();
          String separator = FileSystems.getDefault().getSeparator();
          if (!realPath.endsWith(separator)) {
              realPath += separator;
          }
          return realPath;
      }