Configuration doesn't work on OSX
Amazing work on librevault so far.
This feature would have the same functionality as BitTorrent Sync's IgnoreList where it includes default filetypes to ignore, and allows you to add your old filetypes and directories to ignore.
I've created ~/Library/Preferences/Librevault/folders.conf
With this JSON:
{
"ignore_paths": ["test"]
}
And it doesn't work when creating a new folder called test. It still syncs.
I've just discovered some mistakes in the blog. Actually, the blog page is not the right place for deep-technical articles. I've created a GitHub wiki page for configuration.
First, the correct location for OSX is ~/Library/Application Support/Librevault.
Second, the folder.conf format is a bit different: it is an array of objects. And every object must contain "secret" and "path". Also, this object may contain additional fields, like "ignore_paths".
And, regarding your "test" path: it will not work, because the daemon lacks the support of wildcards in paths and only supports ECMAScript notation, applied to full path. Your example with "test" folder should be written as ^test(?:\/(?:.*))?. This is not convenient at all.
It is a serious issue, and I've created #36 to track it.
Thanks for the detailed response!
On a complete side note, you I sent you an email today to your gmail to get you to take a look at reddit since Librevault is a trending post right now. Perhaps you should answer some of the questions folks have there.
https://www.reddit.com/r/programming/comments/4x1qbu/librevault_open_source_zeroknowledge_peer2peer/
Thanks, I've seen your email and typing the replies right now :+1:
Cool. Congrats again on your great work on Librevault. Hope to see it grow and thrive.
Back to the ignoring of files/folders. If possible you should make it exactly like BitTorrent Sync, where there is a .IgnoreList file within the synced folder where you can list all the files/folders to ignore.
Cheers!
Yes, I am thinking on that, too. It is the same approach as .ignore files in Git, Mercurial, Syncthing and BTSync. I think, it needs to be implemented in the nearest releases. Created #37
Exactly!
watch out for questions/comments here too: (Librevault is on the front page of Hacker News) https://news.ycombinator.com/item?id=12261409