Commit ad74c48
fix: improve symlink handling in filename search
1. Added test cases for symlink directory handling in real-time search
2. Modified real-time strategy to skip recursing into symlink
directories while still matching their names
3. Handles three key scenarios: symlink name matching, preventing
recursion into symlinks, and avoiding cycles from circular symlinks
4. Tests verify correct behavior for each scenario
Log: Improved symlink directory handling in file search
Influence:
1. Test searching for files in directories containing symlinks
2. Verify symlink directory names are matched correctly
3. Confirm search doesn't follow symlinks into other directories
4. Check circular symlink detection and handling
5. Test search performance with multiple symlinks
fix: 改进文件名搜索中的符号链接处理
1. 为实时搜索中的符号链接目录处理添加测试用例
2. 修改实时策略跳过递归进入符号链接目录,同时仍可匹配其名称
3. 处理三种关键场景:符号链接名称匹配、防止递归进入符号链接、避免环形符
号链接导致的循环
4. 测试验证了每种场景的正确行为
Log: 改进文件搜索中的符号链接目录处理
Influence:
1. 测试包含符号链接目录中的文件搜索
2. 验证符号链接目录名称能被正确匹配
3. 确认搜索不会跟随符号链接进入其他目录
4. 检查环形符号链接的检测和处理
5. 测试多符号链接情况下的搜索性能1 parent 06fc65c commit ad74c48
2 files changed
Lines changed: 87 additions & 5 deletions
File tree
- autotests/dfm-search-tests
- src/dfm-search/dfm-search-lib/filenamesearch/filenamestrategies
Lines changed: 85 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
911 | 914 | | |
912 | 915 | | |
913 | 916 | | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
914 | 999 | | |
915 | 1000 | | |
916 | 1001 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 111 | + | |
| 112 | + | |
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
| |||
0 commit comments