.NET Directory.getFiles()不同的Windows服务器中的不同行为
getFiles()返回Windows Server 2016(和Windows 10)中的所有文件,但Windows Server 2019中的所有文件仅返回仅零字节文件。 至少我开始认为不同的服务器版本可能是这种不同行为的来源,因为对于环境的读取文件没有其他配置,并且没有物理编码长度!= 0检查任何地方,因此差异可能在环境本身中。
问题的原因是我找不到任何文档来证明这一理论。
GetFiles() return all files in Windows Server 2016 (and Windows 10) but in Windows Server 2019 returns only not zero byte files.
At least i start to think that different server versions could be a source of such different behavior because there is no additional configurations for reading file for environments and no physical coded Length != 0 check anywhere so difference could be in environment itself.
Reason for question is that i can't find any documentation to prove that theory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论