--merge option for move

Open
#668 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, nodejs
Domain
backend

Research direction

No files or tests are named. Start by locating the existing move implementation and its tests, then trace how destination replacement currently works. Done means a --merge option preserves an existing destination and recursively merges its contents, while still moving normally when the destination does not exist.

Written by the indexing model from the issue text.

Description

enhancement feature-move

I have the need for the following workflow:

  • if dest doesn't exist, move
  • otherwise, loop over contents
    • repeat

The main difference with the current move is that it deletes the dest before the move, whereas this would merge if conflicted. I figured I would offer to attempt to build it here instead of a new package, if you're interested.

Dominant language
JavaScript
Stars
9.6k
Forks
788
Avg merge
2d 11h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jprichardson/node-fs-extra

All issues in jprichardson/node-fs-extra

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.