> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/files/checking-file-existance.md).

# Checking File Existence

```javascript
file "exists" path/uuid
// if the file doesnt exist dont try to open it
if exists (
  log "file exists!"
) else (
  log "file doesnt exist!"
)

// trying to open a file that doesnt exist causes an error
```
