'.NET Directory.GetFiles() different behavior in different Windows Servers

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.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source