arturadib/shelljs — Issue #1: #mv Won't Work Across Disks
Author: tbeseda
Created: 2012-03-07 17:50:49+00:00
State: open

[`fs#renameSync`](https://github.com/arturadib/shelljs/blob/master/shell.js#L388) won't work across partitions or attached storage. This is by design, as `rename` is paired to the C version of the same method, which isn't able to cross disks either. (See [this closed issue](https://github.com/joyent/node/issues/2703) for more discussion about `rename`.)

A solution could be piping a `readStream` to a `writeStream`, and then cleaning up the source file.
I'd attach a fix but the trouble is that listening for the `end` event and firing a callback would break the synchronous nature of shelljs.

Ideas?

*Great module, by the way. Very helpful!*