Skip to main content

checkFileExists

client.file.checkFileExists(data: CheckFileExistsRequest): Promise<CheckFileExistsResponse>

Checks whether a file exists at the specified path.

Verifies file existence without reading its contents. Useful for conditional logic that depends on whether a file is already present.

Parameters

ParameterTypeRequiredDescription
dataCheckFileExistsRequestYesRequest specifying the file path to check

Returns

Promise<CheckFileExistsResponse> — A promise that resolves to a indicating existence

Example

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

const client = new CodeBoltClient();

const result = await client.file.checkFileExists(/* CheckFileExistsRequest */);
console.log(result);