E7021 Stdlib Validation Errors
cannot-copy-directory
io.copy() cannot copy directories
When this occurs
`io.copy()` called with a directory as the source path
Example error message
error[E7021]:
io.copy() cannot copy directories, only files
How to fix
Use `io.copy()` only for individual files. For directory copying, iterate through contents and copy files individually.