Skip to content

@salesforce/b2c-tooling-sdk / discovery / exists

Function: exists() ​

exists(filePath): Promise<boolean>

Defined in: packages/b2c-tooling-sdk/src/discovery/utils.ts:48

Checks if a file or directory exists.

Parameters ​

filePath ​

string

Path to check

Returns ​

Promise<boolean>

True if exists, false otherwise

Released under the Apache-2.0 License.