Skip to content

PathAlreadyExistsError

A file or directory already exists at the target path, and the operation is configured to fail when this happens. You’re running in “failIfExist” mode.

To resolve this, you have two options:

  1. Remove the existing files/directories (if you want to start fresh):
Terminal window
rm -rf path/to/samples
  1. Use overwrite mode when initializing:
Terminal window
thymian sampler:init --overwrite

The --overwrite flag tells Thymian to replace existing files instead of failing when they already exist. Use this when you want to regenerate samples and replace the old ones.