The exists API is a when rule, pxExists. This API returns a true Boolean value if the folder or file exists.
To use this API, define the following parameters:
- repositoryName – the name of the repository.
- filePath – the path to the file or folder, relative to the root path of the repository.