.NET Directory.getFiles()不同的Windows服务器中的不同行为

发布于 2025-01-23 08:18:29 字数 205 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文