filer
filer copied to clipboard
Issue #122 - Added sh.mv with tests and documentation
New request -_- Sorry about the last one.
This is a pretty good patch!
@modeswitch Is this approach to mv
what we want? I'm fairly sure fs.rename
can do the majority of the work for us though I'm still investigating. I need this for #273 , so if rename
isn't enough I'll probably update this patch instead of the one I'm developing.
I had a quick look at it seems reasonable. The code probably needs to be updated to bring it in line with recent refactoring.
Can you give it a review (adding comments to the patch) and we can discuss any changes you feel are required. If most of the work is done already, let's use this.
@modeswitch The mv
utility can accept multiple source files to be moved to a directory. Do we want to support this?
The new version of this PR is #346
The POSIX standard says that the mv
utility relies on rename()
, except for cross-filesystem moves. At the moment, this patch is doing the rename()
work manually, but it's working. Should I switch it to use fs.rename()
?
This can't be automerged. Can you investigate?
@modeswitch Here's the updated PR: https://github.com/filerjs/filer/pull/346
It's missing a test case, which shouldn't be too difficult to add. Other than that I believe it's ready for review.