I use resilio sync for this. https://www.resilio.com/individuals/
The iOS (and I assume android) syncing is fine, and it hooks in with the files API so I use pretext/ whatever markdown editor to edit / look things up on the go. For some reason resilio isn’t talked about highly on HN though, not entirely sure why.