PathPackResources#isRegularFile ignores folders named .DS_Store but not other system folders. When developing a resource or data pack, it is very nice to have it be a Git repository, which also introduces a .git folder.
It would be great to add .git as an exclusion, or, more generally, all files and folders starting with a . (typically used by all kinds of software, such as .stfolder for Syncthing).
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki