sh.Copy does not close destination file descriptor #222
Closed
Description
The sh.Copy
function successfully closes the source
file descriptor, but leaves the destination
file descriptor open when the function returns.
On Windows, this causes an error if the destination
file is later deleted. The following error is produced.
The process cannot access the file because it is being used by another process.