joinGlobs
import { joinGlobs } from "jsr:@ende/path/posix/join-globs";function
function joinGlobs(globs: string[], options: Pick<GlobOptions, "globstar"> = [UNSUPPORTED]): stringLike join(), but doesn't collapse "**/.." when globstar is true.
globs: string[]The globs to join.
options: Pick<GlobOptions, "globstar"> = [UNSUPPORTED]The options to use.
Returns
The joined path.
Example: Usage
import { joinGlobs } from "@ende/path/posix/join-globs";
import { assertEquals } from "@ende/assert";
const path = joinGlobs(["foo", "bar", "**"], { globstar: true });
assertEquals(path, "foo/bar/**");