From 8a8c050a216d3ef29c5bee1ed7f4ec72f40c6cf0 Mon Sep 17 00:00:00 2001 From: horsesword Date: Sat, 30 Apr 2022 17:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95=E6=AF=94?= =?UTF-8?q?=E5=AF=B9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tagdox.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tagdox.py b/tagdox.py index 895bc7f..9aad5f8 100644 --- a/tagdox.py +++ b/tagdox.py @@ -1944,9 +1944,13 @@ def exec_tree_add_items(tree, dT, search_items=None) -> None: canadd = 0 else: for f_index in range(len(lst_sub_folders_full)): + # 文件夹 tmp_sub_pth = str.lower('/'.join([tmp_current_path, lst_sub_folders_full[f_index]])) + # 完整文件路径(不含文件名) tmp_full_pth = str.lower(tmp_fpath).replace('\\', '/') - if tmp_sub_pth+'//' in tmp_full_pth+'//': # 判断文件在哪个子文件夹内。添加两个斜线是为了避免文本包含。 + # + # print(tmp_sub_pth, tmp_full_pth) # 调试用 + if tmp_sub_pth+'/' in tmp_full_pth+'/': # 判断文件在哪个子文件夹内。添加斜线是为了避免文本包含。 the_node = lst_sub_items[f_index] lst_k[f_index] += 1 k2 = lst_k[f_index] -- GitLab