Table of Contents

Method ListDirectory

Namespace
Oscova.Agents.Toolsets
Assembly
Oscova.Agents.dll

ListDirectory(string, int, int, int)

Lists directory entries with depth control and pagination.

public string ListDirectory(string path, int offset = 1, int limit = 25, int depth = 2)

Parameters

path string

The relative, agent-facing, or host directory path the active workspace allows reading.

offset int

The one-based entry index where the page starts.

limit int

The maximum number of entries to return.

depth int

The maximum child-directory depth to traverse.

Returns

string

A formatted directory listing with range metadata.