A relative pattern is a helper to construct glob patterns that are matched relatively to a base file path. The base path can either be an absolute file path as string or uri or a {@link WorkspaceFolder workspace folder}, which is the preferred way of creating the relative pattern.
A relative pattern is a helper to construct glob patterns that are matched relatively to a base file path. The base path can either be an absolute file path as string or uri or a {@link WorkspaceFolder workspace folder}, which is the preferred way of creating the relative pattern.
(base relative-pattern)
A base file path to which this pattern will be matched against relatively.
This matches the fsPath
value of {@link RelativePattern.baseUri }.
Note: updating this value will update {@link RelativePattern.baseUri } to
be a uri with file
scheme.
A base file path to which this pattern will be matched against relatively. This matches the `fsPath` value of {@link RelativePattern.baseUri }. *Note:* updating this value will update {@link RelativePattern.baseUri } to be a uri with `file` scheme.
(base-uri relative-pattern)
A base file path to which this pattern will be matched against relatively. The
file path must be absolute, should not have any trailing path separators and
not include any relative segments (.
or ..
).
A base file path to which this pattern will be matched against relatively. The file path must be absolute, should not have any trailing path separators and not include any relative segments (`.` or `..`).
(pattern relative-pattern)
A file glob pattern like *.{ts,js}
that will be matched on file paths
relative to the base path.
Example: Given a base of /home/work/folder
and a file path of /home/work/folder/index.js
,
the file glob pattern will match on index.js
.
A file glob pattern like `*.{ts,js}` that will be matched on file paths relative to the base path. Example: Given a base of `/home/work/folder` and a file path of `/home/work/folder/index.js`, the file glob pattern will match on `index.js`.
(set-base! relative-pattern value)
A base file path to which this pattern will be matched against relatively.
This matches the fsPath
value of {@link RelativePattern.baseUri }.
Note: updating this value will update {@link RelativePattern.baseUri } to
be a uri with file
scheme.
A base file path to which this pattern will be matched against relatively. This matches the `fsPath` value of {@link RelativePattern.baseUri }. *Note:* updating this value will update {@link RelativePattern.baseUri } to be a uri with `file` scheme.
(set-base-uri! relative-pattern value)
A base file path to which this pattern will be matched against relatively. The
file path must be absolute, should not have any trailing path separators and
not include any relative segments (.
or ..
).
A base file path to which this pattern will be matched against relatively. The file path must be absolute, should not have any trailing path separators and not include any relative segments (`.` or `..`).
(set-pattern! relative-pattern value)
A file glob pattern like *.{ts,js}
that will be matched on file paths
relative to the base path.
Example: Given a base of /home/work/folder
and a file path of /home/work/folder/index.js
,
the file glob pattern will match on index.js
.
A file glob pattern like `*.{ts,js}` that will be matched on file paths relative to the base path. Example: Given a base of `/home/work/folder` and a file path of `/home/work/folder/index.js`, the file glob pattern will match on `index.js`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close