Like Pascal's ExcludeTrailingPathDelimiter
Find an executable with the given name (no extension) in the given directories. Returns null if not found.
Find a program's "home" directory, based on the presence of a file.
Returns true if a program with the given name can be found in PATH.
Like Pascal's IncludeTrailingPathDelimiter
Like startsWith, but pathStartsWith("/foo/barbara", "/foo/bar") is false.
Modify a path under oldBase to a new path with the same subpath under newBase. E.g.: /foo/bar.rebasePath(/foo, /quux) == /quux/bar
Variant of std.path.relativePath with the following differences: - Works with relative paths. If either path is relative, it is first resolved to an absolute path. - If path starts with base, avoids allocating.
Return the PATH environment variable, split into individual paths.