I want to build a manual file tagging system like this. Given that a folder contains these files:
data/
budget.xls
world_building_budget.txt
a.txt
b.exe
hello_world.dat
world_builder.spec
I want to write a tagging system where executing
py -3 tag_tool.py -filter=world -tag="World-Building Tool"
will output
These files were tagged with "World-Building Tool":
data/world_building_budget.txt
hello_world.dat
world_builder.spec
Another example. If I execute:
py -3 tag_tool.py -filter="\.txt" -add_tag="Human Readable"
It will output
These files were tagged with "Human Readable":
data/world_building_budget.txt
a.txt
I am not asking "Do my homework for me". I want to know what approach I can take to build something this? What data structure should I use? How should I tag contents in a directory?