MCPcopy Create free account
hub / github.com/SAP/ui5-project / getRootReader

Method getRootReader

lib/specifications/Specification.js:250–257  ·  view source on GitHub ↗

* Gets a [ReaderCollection]@ui5/fs/ReaderCollection for the root directory of the specification. * Resource readers always use POSIX-style * * @public * @param {object} [parameters] Parameters * @param {object} [parameters.useGitignore=true] * Whether to apply any excludes defi

({useGitignore=true} = {})

Source from the content-addressed store, hash-verified

248 * @returns {@ui5/fs/ReaderCollection} Reader collection
249 */
250 getRootReader({useGitignore=true} = {}) {
251 return createReader({
252 fsBasePath: this.getRootPath(),
253 virBasePath: "/",
254 name: `Root reader for ${this.getType()} ${this.getKind()} ${this.getName()}`,
255 useGitignore
256 });
257 }
258
259 /* === Internals === */
260 /* === Helper === */

Callers 4

_dirExistsMethod · 0.95
_getPomMethod · 0.80
Specification.jsFile · 0.80

Calls 4

getRootPathMethod · 0.95
getTypeMethod · 0.95
getKindMethod · 0.95
getNameMethod · 0.95

Tested by

no test coverage detected