Skip to content

FileScope

Namespace NetWiv · Assembly NetWiv.Core

public sealed class FileScope
public FileScope(JsonElement scope, string appIdentifier);
public IReadOnlySet<string> AllowedPatterns { get; }
public IReadOnlySet<string> ForbiddenPatterns { get; }
public void AllowDirectory(string path, bool recursive);
public void AllowFile(string path);
public void ForbidDirectory(string path, bool recursive);
public void ForbidFile(string path);
public bool IsAllowed(string path);
public bool IsForbidden(string path);
public uint Listen(Action<FileScopeEvent> handler);
public uint Once(Action<FileScopeEvent> handler);
public void Unlisten(uint id);