Draft: Bug 40182: Use File::Copy::Recursive instead of File::Copy
File::Copy is not supposed to be able to move directories, only single files. It only works by chance if the source and destination are on the same filesystem and a rename is working.
Closes #40182 (closed).