title: How do I move file a to a different partition or device in Node.js?
body: <p>I'm trying to move a file from one partition to another in a Node.js script. When I used <code>fs.renameSync</code> I received <code>Error: EXDEV, Cross-device link</code>. I'd copy it over and delete the original, but I don't see a command to copy files either. How can this be done?</p>