code: public static String optionallyAppendSlash(final String path) {
          // Precondition check
          assertSpecified(path);
  
          // If the last character is not a slash
          if (!isLastCharSlash(path)) {
              // Append
              return path + ArchivePath.SEPARATOR;
          }
  
          // Return as-is
          return path;
      }
docs: Adds, if not already present, the absolute slash following the specified path, and returns the adjusted result.
  
  @param path
  @return