fetch_files


Description:

public async Response fetch_files (int limit = 50, string query = "", string[] paths = new string[0] {}, bool metadata_only = false, bool recent = false) throws Error

Fetch a file page, or the files and folders matching a name.

An empty query is one file page from the start. msg is that page total. A name query returns those folder ids as native-endian int32 bytes. More than 100 matches fails with OLLMrpc.RpcErrorCode.TOO_MANY_RESULTS. recent returns viewed files, newest first, at most limit rows.

Parameters:

limit

Page size (default 50)

query

Name filter; empty browses files

paths

Path-filter batch

metadata_only

Unused on the daemon today

recent

Viewed files only, newest first

Returns:

OLLMrpc.Response for the page or the search

Exceptions:

GLib.Error

if the RPC fails, including OLLMrpc.RpcErrorCode.TOO_MANY_RESULTS