Class PathNorm

java.lang.Object
eu.mrapik.minecraftservermcp.config.PathNorm

public final class PathNorm extends Object
Normalizes user-provided path fragments so comparisons use forward slashes regardless of OS separator.
  • Method Details

    • normalizeSlashes

      public static String normalizeSlashes(String path)
      Normalizes separators for cross-platform config comparisons.
      Parameters:
      path - raw path fragment
      Returns:
      path with backslashes replaced by forward slashes