Bug or Feature? Documents in /private/ directory are ignored if contents identical to another

Steps to reproduce:

  1. Open a Terminal window
  2. Create a new barebones Meteor project: meteor create identitest
  3. Add a private folder containing two identical files: cd identitest/ && mkdir private && touch private/{a..b}
  4. Launch meteor: meteor
  5. In a different Terminal window, inspect the files that are copied to the build: ls -al '.meteor/local/build/programs/server/assets/app'

Result:
Only the first file (alphabetically-speaking) is included in the build:

total 8
drwxr-xr-x 2 me me 4096 nov 28 15:36 .
drwxr-xr-x 3 me me 4096 nov 28 15:36 ..
-r--r--r-- 1 me me    0 nov 28 15:36 a

Variants (the results will be the same):

  • Type some arbitrary text into one file, and copy and paste the same text into the other
  • Place one of the identical files in a subfolder

Expected: All files in the private folder should be copied into the .meteor/local/build/programs/server/assets/app directory.

Workaround: You can force “identical” files to be copied if you add whitespace to make them unique.