Doing an MDQuery for kMDItemFSName or kMDItemPath doesn't work as I'd expect?

Specifically, it doesn't find anything. (Now, this isn't a huge deal, I was just playing with some queries related to another issue I had, and found that I couldn't search that way.)

Is this expected? eg, mdfind 'kMDItemFSName == "/"' finds nothing.

Answered by kithrup in 725214022

Well, duh, because I didn't read enough: Complete path to the file. This value of this attribute can be retrieved, but can't be used in a query or to sort search results..

Accepted Answer

Well, duh, because I didn't read enough: Complete path to the file. This value of this attribute can be retrieved, but can't be used in a query or to sort search results..

Doing an MDQuery for kMDItemFSName or kMDItemPath doesn't work as I'd expect?
 
 
Q