本文介绍了DirectoryInfo.GetFiles已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! MSDN> 当扩展名完全是 三个字符长时,searchPattern的匹配行为与扩展名超过 三个字符长时不同。正好三个字符的searchPattern返回 文件,其扩展名为三个或更多字符。一个,两个或三个以上字符的一个,两个或三个以上字符的searchPattern只返回具有完全长度的扩展名 的文件。 什么< BLEEP>他们的想法是什么! 好吧,不是说我的系统没有... 由于可能的原因,MS决定了" * ABC"。应解释为 " * .abc *"? - Jonathan AllenMSDN> "The matching behavior of searchPattern when the extension is exactlythree characters long is different from when the extension is more thanthree characters long. A searchPattern of exactly three characters returnsfiles having an extension of three or more characters. A searchPattern ofone, two, or more than three characters returns only files having extensionsof exactly that length."WHAT THE <BLEEP> WERE THEY THINKING!Ok, not that I have that out of my system...For what possible reason did MS decide that "*.abc" should be interpreted as"*.abc*"?--Jonathan Allen推荐答案 这篇关于DirectoryInfo.GetFiles已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 05-26 08:45