Skip to content
New issue

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

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

Already on GitHub? # to your account

example for using as a library #7

Open
logicminds opened this issue Apr 8, 2015 · 4 comments
Open

example for using as a library #7

logicminds opened this issue Apr 8, 2015 · 4 comments

Comments

@logicminds
Copy link

How would I use go-sync as a library in my app to sync a directory to another directory? Can you provide some examples.

@Redundancy
Copy link
Owner

The best example should be the gosync tool (under gosync), although it doesn't implement a full directory sync yet.

There are almost certainly a few things that need checking - truncating file lengths, setting file flags etc.

@Redundancy
Copy link
Owner

@Redundancy
Copy link
Owner

I've made some improvements that should make it considerably easier and cleaner to do this. It's still missing a number of things, but it should be a much saner proposition. See the updated patch.go file.

It's also on my list of things to do in the gosync tool.

@fire
Copy link

fire commented Jul 2, 2015

Will review

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

No branches or pull requests

3 participants