Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagTree实现思路 #66

Open
Zacharia2 opened this issue Oct 31, 2024 · 1 comment
Open

TagTree实现思路 #66

Zacharia2 opened this issue Oct 31, 2024 · 1 comment

Comments

@Zacharia2
Copy link
Collaborator

思路1,根据每个文件路径进行。

1 拆分路径为数组,并反转数组
2 依次创建数组中的条目,注意要先判断是否存在,不要覆盖
3 修改第一次创建的条目,为它添加父tag
4 对所有的文件都这样做。

缺陷,若路径中存在相同名称,则信息丢失。

TagTree的特性,路径中每个名字都是唯一的。

@Zacharia2
Copy link
Collaborator Author

现在就两个方案,1追加在已有条目后面,2,加后缀。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant