---
url: /process-functions/datasource-directoryexists.md
description: Returns a boolean of the directory being found in the MODLR file system.
---

# datasource.directoryExists&#x20;

Returns a boolean of the directory being found in the MODLR file system.

```js
datasource.directoryExists(directoryName);
```

#### Parameters

* `directoryName` - The file path and name of the directory to check.

#### Example

```js
let res = datasource.directoryExists("Export");
```

```js
let res = datasource.directoryExists("Upload/Images");
```
