amoffat / supertag

A tag-based filesystem
https://amoffat.github.io/supertag/
GNU Affero General Public License v3.0
589 stars 24 forks source link

Unsure how to import a large number of files #7

Open ngirard opened 3 years ago

ngirard commented 3 years ago

The documentation -- which is great btw -- doesn't seem to address how to import a large number of files into a Supertag collection, and I couldn't find any script of program in the repo tree that would help.

Do you have any best practices to share ? Could we imagine a helper tool for this ? I guess what I'm thinking of, is a program (or a subcommand) that would take as arguments:

and that would

What do you think ?

amoffat commented 3 years ago

A helper tool that does that sounds awesome. It would make it much more convenient to manage lots of files that way. There's no way to do that currently. In addition to skipping common ignorable directories, there could be a field in the default config toml for additional ignore patterns. Or maybe just the ability to pass those ignore patterns in on the commandline.

I think it would be pretty straightforward to implement:

There are some helpers for walking paths in the tests that might be useful for spidering the directory to import. I know there is also walkdir

It's a cool idea, my time this month is limited due to work, but I can provide guidance if you (or anyone else) wishes to tackle it