---
title: "ObjectCaptureSession.Error.directoryNotEmpty(_:)"
framework: realitykit
role: symbol
role_heading: Case
path: "realitykit/objectcapturesession/error/directorynotempty(_:)"
---

# ObjectCaptureSession.Error.directoryNotEmpty(_:)

We cannot continue a pre-existing capture, so if an output directory is provided that already exists and it is not empty, this error is thrown.

## Declaration

```swift
case directoryNotEmpty(URL)
```
