FileScope
Namespace NetWiv · Assembly NetWiv.Core
public sealed class FileScopeConstructors
Section titled “Constructors”FileScope
Section titled “FileScope”public FileScope(JsonElement scope, string appIdentifier);Properties
Section titled “Properties”AllowedPatterns
Section titled “AllowedPatterns”public IReadOnlySet<string> AllowedPatterns { get; }ForbiddenPatterns
Section titled “ForbiddenPatterns”public IReadOnlySet<string> ForbiddenPatterns { get; }Methods
Section titled “Methods”AllowDirectory
Section titled “AllowDirectory”public void AllowDirectory(string path, bool recursive);AllowFile
Section titled “AllowFile”public void AllowFile(string path);ForbidDirectory
Section titled “ForbidDirectory”public void ForbidDirectory(string path, bool recursive);ForbidFile
Section titled “ForbidFile”public void ForbidFile(string path);IsAllowed
Section titled “IsAllowed”public bool IsAllowed(string path);IsForbidden
Section titled “IsForbidden”public bool IsForbidden(string path);Listen
Section titled “Listen”public uint Listen(Action<FileScopeEvent> handler);public uint Once(Action<FileScopeEvent> handler);Unlisten
Section titled “Unlisten”public void Unlisten(uint id);