I needed to find a file with file name “tsserver.js” on my iMac running macOS Sierra. So the first thing I tried was Spotlight, but it returned no files. Then I launched a search in the Finder, but it also returned no files matching that name.
I was quite sure that I had at least one file with that name on my iMac, so I started a Terminal session and entered the command “mdfind -name tsserver.js” and sure enough, it gave me the locations of several files on my iMac with that name.
So I am puzzled why neither Spotlight nor the Finder enabled me to find the file. I have done other tests using Spotlight and the Finder and was successfully able to find files using either of those utilities. But in the “tsserver.js” example only mdfind worked.
Is it a known feature of Spotlight and the Finder that not all files can be found using those utilities?