Property BaseDirectory
BaseDirectory
Gets or sets the base directory of the file repository to be cleaned, or null while it is not set.
Declaration
[MaybeNull]
public required IAbsoluteDirectoryPath BaseDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| IAbsoluteDirectoryPath |
Remarks
The path must be valid for NoUnfriendlyNames on every platform, as BaseDirectory must: no
name in it starts or ends with a space, ends with a dot or contains a control character, and on Windows none is a reserved device name such as
CON. Configuration binding reads paths with None, which keeps such names, so without this check a typo such as a
trailing space or dot would name a directory that is not the repository's.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The value has a name that is not friendly (see above). |