Documentation Index
Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt
Use this file to discover all available pages before exploring further.
documents.list_files
Lists file objects stored under your namespace prefix in document storage (S3):file_name, size (bytes), and last_modified. This is not the same as indexed text documents; use documents.get or documents.fetch_text_data for pipeline output.
Parameters
The name of the target namespace (must exist and belong to your account).
Dict[str, Any] - A dictionary with listing results.
Common response fields include success, namespace, file_count, and files (each item: file_name, size, last_modified). Keys are snake_case after SDK normalization.
Raises: NamespaceNotFound, InvalidInputError, AuthenticationError, APIError, MoorchehError.
Example
List Files Example
Async Example
List Files Async Example
Complete Example
Complete List Files Workflow
Important Notes
Raw storage listing: Each entry in
files describes an object in storage (for example after documents.upload_file), not a text document row from the indexing pipeline alone.Ordering: Do not assume a stable sort from the API; sort client-side if you need a specific order.
Best Practices
- Use listing for audits, cleanup, or UI file pickers; use search for semantic queries over processed content
- Sort or filter client-side when you need deterministic ordering
- Use Delete Files (
documents.delete_files) when you need to remove storage objects by file name
Related Operations
- Upload File - Upload files via pre-signed flow
- Delete Files - Remove file objects by name from storage
- Fetch Text Data - List ingested text and summary chunks
- Search - Query uploaded and processed content
- Delete Data - Remove documents by ID