I am looking for a macOS equivalent of the Windows command:

type:NOT"file folder" 

This command, when entered into Windows Explorer search bar, will display all the files of a directory or hard drive, without showing the folders in the search results.



You can set up some quite complex searches using Cmd ⌘ F in the Finder, rather than invoking Spotlight itself.

enter image description here

You can define many criteria & even save as a smart search for future use.

If you really want to get in-depth, you can use Spotlight's own query language, though the mechanics of that are well beyond my pay-grade.
I'll let Macworld - macOS: How to use Spotlight’s query language to create an All My Files-like feature - explain in detail.

| improve this answer | |
  • Thank you for taking the time to reply. Unfortunately this is a path I have been down before, and sadly it does not answer the question above. We are looking for a macOS equivalent of the Windows query command type:NOT"file folder", which can be typed into the search box of whatever directory we are viewing, so that we can see all the files within that directory, and within it's subfolders, without any folders actually being displayed in the search results. – Ghost Aug 2 at 11:17
  • There isn't one, afaik. macOS is not Windows & very rarely behaves like it ;) Spotlight, especially, is very much a consumer-level tool. – Tetsujin Aug 2 at 11:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .