andrewkroh / gvm

Go Version Manager (written in Go for cross-platform usability)
Apache License 2.0
195 stars 24 forks source link

Replace os.Rename with common.Rename #31

Closed andrewkroh closed 3 years ago

andrewkroh commented 3 years ago

common.Rename tries to use os.Rename but falls-back to copy/delete on failure. This allows operation across disks to succeed.

Also add better error handling in the extract functions.