Package com.glitchybyte.glib
Class GPaths
java.lang.Object
com.glitchybyte.glib.GPaths
Path utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathReturns the current working directory.static PathgetFullPath(String path) Returns the absolute and normalized path.static PathgetFullPath(Path path) Returns the absolute and normalized path.static PathReturns the current user home directory.
-
Method Details
-
getCurrentDirectory
Returns the current working directory.- Returns:
- The current working directory.
-
getHomeDirectory
Returns the current user home directory.- Returns:
- The current user home directory.
-
getFullPath
Returns the absolute and normalized path.- Parameters:
path- Path to absolutize and normalize.- Returns:
- The absolute and normalized path.
-
getFullPath
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.
-