out-of-cheese-error / gooseberry

A command line utility to generate a knowledge base from Hypothesis annotations
Apache License 2.0
152 stars 9 forks source link

Unsure what happens after replying no to "Clear knowledge base directory?" #86

Closed ngirard closed 2 years ago

ngirard commented 3 years ago

I'd tempted to answer "no" to "Clear knowledge base directory?" when generating the knowledge base, but I don't know what whould happen in both situations:

Ninjani commented 3 years ago

Files are overwritten in both cases. I haven't handled the kb config change at all, so there'll be extra files in that case. The prompt is mainly to warn users that a directory will be cleared because I accidentally deleted a pretty important directory once :p Though now that I look again it doesn't actually tell you which directory until after you answer which is not very user-friendly...

ngirard commented 3 years ago

Files are overwritten in both cases.

Do you mean that the whole kb dir is deleted & recreated, or that the files are left as is ?

Ninjani commented 3 years ago

On answering yes, the whole kb dir is deleted and recreated. On answering no, files are left as is but those with the same name are overwritten.

ngirard commented 3 years ago

Aha. I see, thanks !