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.
Thanks.