I am downloading a file to a temporary directory using
URL::downloadToFile and then renaming it in my
finished callback, which works fine on macOS, but in Windows it appears the file handle must still be open as any attempt to use
File::moveFileTo fails, as do any attempts to
I solved this by instead using
File::copyFileTo and then waiting a while before deleting the temporary file in a
Timer::callAfterDelay, but it would be nicer if the same code using
moveToFile worked on both platforms.
When I have some time I can create a demonstration PIP to show the issue if required.