E7023 Stdlib Validation Errors

directory-not-empty

directory not empty

When this occurs

`io.remove_dir()` called on a non-empty directory

Example error message

error[E7023]: directory not empty: remove /path/to/dir: directory not empty

How to fix

Remove all files and subdirectories first, or use `io.remove_all()` for recursive deletion (use with caution).

Related errors