foostan/fileconsul

Provide option to not "clean" files that are remote

Opened this issue · 1 comments

The current behavior in 0.1.1 is to do something like a git clean -idx on the remote dir when pushing.

It would be nice to optionally have the ability to keep adding files (as 0.1.0 behaved).

If you have 2 nodes, and each could modify a file under /path, eg /path/node1.json and /path/node2.json there will be a race condition on who pulled/pushed when. If node2 hasn't modified node1.json, but node1 has, a push on either should preserve the node1.json and add any new nodeX.json files.

Sorry to reply late...

Thank you for your issue.
Please pull request if you can do it 🙇