Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying multiple source directories and target directories #13

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

felixhao28
Copy link

This PR allows specifying multiple source directories and target directories:

syncdir --source <source_path1> --target <target_path1> --source <source_path2> --target <target_path2>

This is useful when:

  1. You don't want to spawn multiple watch processes to sync several directories in watch mode.
  2. Target directories overlap. For example, merging several source directories into one target directory, while deleting orphans.

In addition to this feature, I fixed some overall code style/bad smell issues and added proper tests for simple cases.

@hoperyy
Copy link
Owner

hoperyy commented Nov 16, 2020

Many changes...

I'll check and it will take a while...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants