Class FilePathToUnixStyleConverter

Object
FilePathToUnixStyleConverter

public class FilePathToUnixStyleConverter extends Object
Conversion to Unix-style separators.
Author:
Owen Feehan
  • Method Details

    • toStringUnixStyle

      public static String toStringUnixStyle(Path path)
      Converts a path to a string using Unix-style separators (forward-slashes).
      Parameters:
      path - with either Windows-style (blackslashes) or Unix-style separators (forward slashes).
      Returns:
      identical path but with Unix-style separators.
    • toStringUnixStyle

      public static String toStringUnixStyle(String path)
      Converts a path to a string using Unix-style separators (forward-slashes).
      Parameters:
      path - with either Windows-style (blackslashes) or Unix-style separators (forward slashes).
      Returns:
      identical path but with Unix-style separators.