Class VirtualStorageSettings
Manages settings for the virtual storage. This class implements the singleton pattern and holds default settings and various parameters.
Inherited Members
Namespace: AkiraNetwork.VirtualStorageLibrary
Assembly: VirtualStorageLibrary.dll
Syntax
public class VirtualStorageSettings
Properties
InvalidNodeNameCharacters
Gets or sets an array of characters that are invalid in node names.
Declaration
public HashSet<char> InvalidNodeNameCharacters { get; set; }
Property Value
Type | Description |
---|---|
HashSet<char> | An array of characters that cannot be used in node names. |
InvalidNodeNames
Gets or sets an array of invalid node names.
Declaration
public HashSet<string> InvalidNodeNames { get; set; }
Property Value
Type | Description |
---|---|
HashSet<string> | An array of node names that are not allowed in the virtual storage. |
NodeListConditions
Gets or sets the conditions for listing nodes.
Declaration
public VirtualNodeListConditions NodeListConditions { get; set; }
Property Value
Type | Description |
---|---|
VirtualNodeListConditions | The conditions used to filter, group, and sort nodes. |
PathDot
Gets or sets the path representing the current directory. The default value is ".".
Declaration
public string PathDot { get; set; }
Property Value
Type | Description |
---|---|
string | The representation of the current directory. |
PathDotDot
Gets or sets the path representing the parent directory. The default value is "..".
Declaration
public string PathDotDot { get; set; }
Property Value
Type | Description |
---|---|
string | The representation of the parent directory. |
PathRoot
Gets or sets the root path. The default value is "/".
Declaration
public string PathRoot { get; set; }
Property Value
Type | Description |
---|---|
string | The root directory path in the virtual storage. |
PathSeparator
Gets or sets the path separator character. The default value is '/'.
Declaration
public char PathSeparator { get; set; }
Property Value
Type | Description |
---|---|
char | The character used to separate path segments. |
PrefixDirectory
Gets or sets the prefix used for directory names. The default value is "dir". Used for auto-generating node names.
Declaration
public string PrefixDirectory { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix added to auto-generated directory names. |
PrefixItem
Gets or sets the prefix used for item names. The default value is "item". Used for auto-generating node names.
Declaration
public string PrefixItem { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix added to auto-generated item names. |
PrefixSymbolicLink
Gets or sets the prefix used for symbolic link names. The default value is "link". Used for auto-generating node names.
Declaration
public string PrefixSymbolicLink { get; set; }
Property Value
Type | Description |
---|---|
string | The prefix added to auto-generated symbolic link names. |
Settings
Gets the current instance of the settings.
Declaration
public static VirtualStorageSettings Settings { get; }
Property Value
Type | Description |
---|---|
VirtualStorageSettings | The current instance of VirtualStorageSettings. |
WildcardMatcher
Gets or sets the wildcard matcher.
Declaration
public IVirtualWildcardMatcher? WildcardMatcher { get; set; }
Property Value
Type | Description |
---|---|
IVirtualWildcardMatcher | The implementation of wildcard matching used in the storage. |
Methods
Initialize()
Initializes the settings. Existing settings are reset, and default settings are applied.
Declaration
public static void Initialize()