find command do not seem to locate all files located in a specific folder. I'm running a Mac (under El Capitan 10.11.6 (15G21013), 500GB SSD, HFS+). In one of my folders, where I have about 700k files, I have a file that I can open, and
find will locate it if I specify the file name. However,
find applied on the folder will be unable to find the file. Does this look like a HFS+ corruption? What methods or tools are recommended to repair such an issue, with the minimum downtime, and risk for my filesystem?
11:16:35 gyin@mymac:[~/]: ls dis/ASA.md dis/ASA.md 11:19:06 gyin@mymac:[~/]: find dis/ASA.md dis/ASA.md 11:19:40 gyin@mymac:[~/]: find dis | grep "ASA.md" dis/CASA.md dis/DASA.md 11:19:55 gyin@mymac:[~/]: ls dis | grep "ASA.md" CASA.md DASA.md 11:20:36 gyin@mymac:[~/]: find dis | wc -l 717004
Following Kamil's answer, it doesn't look like an Unicode issue.
13:28:12 gyin@mymac:[~]: find dis/ASA.md | xxd 00000000: 6469 732f 4153 412e 6d64 0a dis/ASA.md. 13:28:25 gyin@mymac:[~]: echo dis/ASA.md | xxd 00000000: 6469 732f 4153 412e 6d64 0a dis/ASA.md. 13:28:34 gyin@mymac:[~]: