Class ShellPaths



  • public class ShellPaths
    extends Object
    • Constructor Detail

      • ShellPaths

        public ShellPaths()
    • Method Detail

      • resolve

        public static Path resolve(String pathSpec)
        Convert a path specification to a Path instance. A Path is initially created using Paths.get(). If that path is absolute it is returned. Otherwise, the behavior is as follows. If the first component of the path is '~', then the path is resolved against the user's home directory. Otherwise the path is resolved against the current working directory of the executing process.
        Parameters:
        pathSpec - an absolute or relative path specification.
        Returns:
        the resolved Path.