P0089 Io Panics

Io

io.copy_file() cannot copy a directory; use io.walk() to enumerate files and copy them individually

When this occurs

This error is triggered when: io.copy_file() cannot copy a directory; use io.walk() to enumerate files and copy them individually

Example error message

error[P0089]: io.copy_file() cannot copy a directory; use io.walk() to enumerate files and copy them individually

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.