dsheiko / nw-autoupdater

⛔️ [DEPRECATED] Library provides low-level API to control NW.js app auto-updates
MIT License
75 stars 36 forks source link

Remove backupDir before copy to it #45

Closed peter23 closed 5 years ago

peter23 commented 5 years ago

copy on Mac OS X throws an error "Cannot copy 'Versions/Current/nwjs Framework' to a subdirectory of itself, 'Versions/Current/nwjs Framework'" if backupDir already exists from the previous backup.

And in any case it is more clean way.

dsheiko commented 5 years ago

Thank you