# output_not_empty

> The directory `disko eject` would write into already exists and has files in it.

| | |
| --- | --- |
| Kind | `disko` command error |
| `disko` exit code | 2 (usage) |

`disko eject` writes a new code project and never overwrites files. By
default it writes into a directory named after the project; `--out <dir>`
chooses another. When that directory exists and is not empty, the command
fails with `output_not_empty` and exit code 2, and nothing is written.

## Fix

- Pass a new or empty directory:

```sh
disko eject my-game.disko.zip --out my-game-code
```

## See also

- [Studio or code?](/studio/studio-or-code)
