---
title: "pathExists"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736866/pathExists"
format: markdown
---
# Description

Determines whether a file or folder exists on the file system.

Note that all file and folder paths in Shogun Post HSL scripting use forward slashes instead of back-slashes.

## Functional area

System

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `pathExists "folderPath"` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `folderPath` | string | yes | The name of the file or folder to search for. |

### Flags

None

## Return value

boolean

Returns true if the file or folder path specified exists on the file system.

## Examples

```plaintext
// See if this file exists on our disk 
boolean $itExists = `pathExists "C:/temp/test.txt"`;
print $itExists;
```