Have a look at Seafile's SeaDrive client for that.

Mind, I haven't actually used it in anger, as I prefer full file sync vs on-demand.