Skip to content

Class: ConfigDir

Defined in: rine-core/dist/src/config-location.d.ts:42

A resolved config dir. Read and write its files through path (or file); print it through shown or show. The two differ for a project .rine link: shown is the link as found, path the store entry it pointed at when the walk accepted it, so a link swapped later is not followed.

Constructors

Constructor

new ConfigDir(
   path, 
   shown, 
   source, 
   refused?): ConfigDir;

Defined in: rine-core/dist/src/config-location.d.ts:50

Parameters

Parameter Type Description
path string The verified store entry: the only path a file is read or written at.
shown string The dir as found, never symlink-resolved: a bound .rine stays .rine. For display only.
source ConfigDirSource -
refused? RefusedProjectDir[] Project .rine dirs the walk skipped and why; absent when it skipped none.

Returns

ConfigDir

Properties

Property Modifier Type Description Defined in
path readonly string The verified store entry: the only path a file is read or written at. rine-core/dist/src/config-location.d.ts:44
refused? readonly RefusedProjectDir[] Project .rine dirs the walk skipped and why; absent when it skipped none. rine-core/dist/src/config-location.d.ts:49
shown readonly string The dir as found, never symlink-resolved: a bound .rine stays .rine. For display only. rine-core/dist/src/config-location.d.ts:46
source readonly ConfigDirSource - rine-core/dist/src/config-location.d.ts:47

Methods

file()

file(...parts): string;

Defined in: rine-core/dist/src/config-location.d.ts:58

parts joined onto path.

Parameters

Parameter Type
...parts string[]

Returns

string


show()

show(p): string;

Defined in: rine-core/dist/src/config-location.d.ts:60

p, a path under path, as the same path under shown; any other path unchanged.

Parameters

Parameter Type
p string

Returns

string