---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [discovery](../index.md) / exists

# Function: exists()

> **exists**(`filePath`): `Promise`\<`boolean`\>

Defined in: [packages/b2c-tooling-sdk/src/discovery/utils.ts:48](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/eee4a3582430c731fadd77072888a1468c2fe25b/packages/b2c-tooling-sdk/src/discovery/utils.ts#L48)

Checks if a file or directory exists.

## Parameters

### filePath

`string`

Path to check

## Returns

`Promise`\<`boolean`\>

True if exists, false otherwise
