Skip to main content

allFiles

client.fileRead.allFiles(params?: FileSearchParams): Promise<FileSearchResult[]>

Retrieves a listing of all files in the project.

Returns the complete set of files, optionally filtered by the provided search parameters. Useful for building file indexes or bulk operations.

Parameters​

ParameterTypeRequiredDescription
paramsFileSearchParamsNoOptional parameters for filtering the file list

Returns​

Promise<FileSearchResult[]> — A promise that resolves to an array of entries

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.fileRead.allFiles();
console.log(result);