Class GPaths

java.lang.Object
com.glitchybyte.glib.GPaths

public final class GPaths extends Object
Path utilities.
  • Method Details

    • getCurrentDirectory

      public static Path getCurrentDirectory()
      Returns the current working directory.
      Returns:
      The current working directory.
    • getHomeDirectory

      public static Path getHomeDirectory()
      Returns the current user home directory.
      Returns:
      The current user home directory.
    • getFullPath

      public static Path getFullPath(Path path)
      Returns the absolute and normalized path.
      Parameters:
      path - Path to absolutize and normalize.
      Returns:
      The absolute and normalized path.
    • getFullPath

      public static Path getFullPath(String path)
      Returns the absolute and normalized path. Also, expands "~" to the user home directory.
      Parameters:
      path - Path to absolutize and normalize.
      Returns:
      The absolute and normalized path.