earthstar-project / earthstar-cli

A complete Earthstar toolbox in the console.
GNU Lesser General Public License v3.0
12 stars 1 forks source link

Sync with a directory of files #3

Closed cinnamon-bun closed 2 years ago

cinnamon-bun commented 4 years ago

Do a bulk import/export between earthstar documents and a directory of files.

This might require a lot of configuration, maybe it's better as a separate script.

How do we make earthstar paths safe to use as filenames?

Do we allow subdirectories, or put everything in one flat directory?

Can we use timestamps for two-way sync, or do we have to ask the user what to do when the data doesn't match?

How do we tell the difference between deleted files and empty files? Earthstar doesn't have deletion yet, only empty values (See https://github.com/cinnamon-bun/earthstar/issues/20 Deletion)

Do we represent directories themselves in Earthstar, or ignore them?