Table of Contents

Class WorkspaceFileAccess

Namespace
Oscova.Agents.Workspace
Assembly
Oscova.Agents.dll

Performs contained workspace I/O through held filesystem handles.

public sealed class WorkspaceFileAccess : IWorkspaceFileAccess

Inheritance

Implements

Inherited Members

Constructors

WorkspaceFileAccess(Func<IReadOnlyList<AllowedDirectory>>)

Creates workspace access backed by the current directory grants.

Methods

Delete(string)

Deletes a contained file when it exists.

Enumerate(string)

Enumerates direct children without following links.

GetEntry(string)

Returns contained entry metadata, or null when the entry is missing.

OpenRead(string)

Opens a readable, seekable file owned by the caller.

Write(string, Action<Stream>, bool)

Writes through a contained stream, atomically replacing the file unless appending.

WriteNew(string, Action<Stream>)

Creates a new file in an existing authorized directory, failing if the destination already exists.