# FileExists()

Determines whether a file exists

```
FileExists( source=any, allowRealPath=object );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| source | any | Yes | a file path or URI. |  |
| allowRealPath | object | No | boolean that defines if relative paths are interpreted or not |  |

# Examples

```cfml
var filePath = "path/to/my/file.md";
if(fileExists(filePath)) echo "it exists"
```







# Categories

[Decision logic](../../categories/decision.md), [File handling](../../categories/files.md)