Java搜索中Windows系统部分中的全盘搜索的C盘忽视 #58
Closed
whitecat346
started this conversation in
想法 | Ideas
Replies: 4 comments 1 reply
-
我认为不能排除 C 盘。自私的说:因为我只有 C 盘 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
不明白为什么要排除 C 盘。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
那就决定不排除C盘了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在Windows系统的全盘搜索方法
private static Task<IEnumerable<string>> SearchDirves(int maxDeep)
中的获取要搜索的磁盘的代码(Windows.cs, 第126行)中
.Where(d => d.Name != @"C:\");
对搜索的磁盘排除了C盘。目前对这个处理有争议,因为大部分人下载Java会放到C盘,这会导致有些Java无法搜索到。如果不排除C盘也无需担心会搜索到Windows的系统文件,因为目标搜索列表
private static readonly string[] TargetSubFolderWords
对目标文件夹做出了限制,Windows的系统目录不在白名单中。现在讨论的是是否取消对C盘的排除。
Beta Was this translation helpful? Give feedback.
All reactions