/*
PathImpl getHomeDirectory()
{
return _args.getHomeDirectory();
}
544122
Path getRootDirectory()
  {
    Path rawRoot = config().get("baratine.root", Path.class, 
                                Paths.get("/tmp/baratine"));

    return rawRoot;
  }
658426
protected static function getUserHomeDir() {
        // Cannot use $_SERVER superglobal since that's empty during UnitUnishTestCase
        // getenv('HOME') isn't set on Windows and generates a Notice.
        $home = getenv('HOME');

        if (!empty($home)) {
            // home should never end with a trailing slash.
            $home = rtrim($home, '/');
        } elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
            // home on windows
            $home = $_SERVER['HOMEDRIVE'] . $_SERVER['HOMEPATH'];
            // If HOMEPATH is a root directory the path can end with a slash. Make sure
            // that doesn't happen.
            $home = rtrim($home, '\\/');
        }

        return empty($home) ? NULL : $home;
    }
282943
@Override
    public String getPath() {
    	String result;

    	result = path.toString().substring(getRoot().getAbsolute().length());
    	return result.replace(File.separatorChar, Filesystem.SEPARATOR_CHAR);
    }
941896
public File getHomeDirectory() {
        if (!configuration.has(STORAGE_DIRECTORY))
            throw new UnsupportedOperationException("No home directory specified");
        File dir = new File(configuration.get(STORAGE_DIRECTORY));
        Preconditions.checkArgument(dir.isDirectory(), "Not a directory");
        return dir;
    }
1216103
function () {
            var self = this, uri;
            if (!self.uri) {
                // path can be specified
                if (self.path) {
                    uri = new S.Uri(self.path);
                } else {
                    uri = S.Config.resolveModFn(self);
                }
                self.uri = uri;
            }
            return self.uri;
        }
383032
@CheckForNull
    public String getPath() {
        Source parent = getParent();
        if (parent != null)
            return parent.getPath();
        return null;
    }
537833
public static Resource getHomeDirectory() {
	if (homeFile != null) return homeFile;

	ResourceProvider frp = ResourcesImpl.getFileResourceProvider();

	String homeStr = System.getProperty("user.home");
	if (homeStr != null) {
	    homeFile = frp.getResource(homeStr);
	    homeFile = ResourceUtil.getCanonicalResourceEL(homeFile);
	}
	return homeFile;
    }
1351136
function getDeepRef() {
  var target = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  var path = arguments.length > 1 ? arguments[1] : undefined;
  var keys = getKeysFromPath(path);
  if (!keys.length) return target;
  var obj = target;

  while (obj && keys.length > 1) {
    obj = obj[keys.shift()];
  }

  var key = keys.shift();

  if (obj && obj.hasOwnProperty(key)) {
    return obj[key];
  }
}
455366
public function getHomePath()
    {
        $unixHome = getenv('HOME');

        if (!empty($unixHome)) {
            return $unixHome;
        }

        $windowsHome = getenv('USERPROFILE');
        if (!empty($windowsHome)) {
            return $windowsHome;
        }

        $windowsHome = getenv('HOMEPATH');
        if (!empty($windowsHome)) {
            return getenv('HOMEDRIVE') . getenv('HOMEPATH');
        }

        throw new \Exception('Could not get the users\'s home path');
    }
1155953
function getAbsPath(...relativePathPartsToRoot) {
    const { resolve, join } = path;

    return fs.existsSync(relativePathPartsToRoot[0])
      ? resolve(join(...relativePathPartsToRoot))
      : resolve(join(getRepoRootAbsPath(), ...relativePathPartsToRoot));
  }
1333638
def cmd_gethome(self, args):
        ''''''
        self.master.mav.command_long_send(self.settings.target_system,
                                          0,
                                          mavutil.mavlink.MAV_CMD_GET_HOME_POSITION,
                                          0, 0, 0, 0, 0, 0, 0, 0)
869224
private static String getUserHome() {
        String home;

        if (platformType == SelfExtractUtils.PlatformType_CYGWIN) {

            home = System.getenv("HOME");
        } else {
            home = System.getProperty("user.home");
        }
        return home;
    }
720219
public Collection<String> getDirectoriesToMonitor() {
        Collection<String> files = new HashSet<String>();
        if (configDropinDefaults != null) {
            files.add(configDropinDefaults.toRepositoryPath());
        }

        if (configDropinOverrides != null) {
            files.add(configDropinOverrides.toRepositoryPath());
        }

        return files;
    }
418430
public Path getHomeDirectory(String userName) {
    if (userName == null)
      userName = System.getProperty("user.name");
    return new Path("/user/"+ userName).makeQualified(this);
  }
657758
@Override
  public PathImpl getPath(String name)
  {
    if (name.startsWith("/"))
      return _path.lookup("." + name);
    else
      return _path.lookup(name);
  }
295271
@Override
  public PathImpl getParent()
  {
    if (_pathname.length() <= 1)
      return lookup("/");

    int length = _pathname.length();
    int lastSlash = _pathname.lastIndexOf('/');

    if (lastSlash < 1)
      return lookup("/");

    if (lastSlash == length - 1) {
      lastSlash = _pathname.lastIndexOf('/', length - 2);
      if (lastSlash < 1)
        return lookup("/");
    }

    return lookup(_pathname.substring(0, lastSlash));
  }
616640
@Deprecated
    public FilePath getModuleRoot() {
        AbstractBuild b = getBuildForDeprecatedMethods();
        return b != null ? b.getModuleRoot() : null;
    }