replace IO::Handle::copy with IO::Path::copy