Mdfind "-onlyin" flag does not return anything

Hi


I was trying to run mdfind on some of my files, when I realized the `-onlyin` flag is broken.


Running the command normally:

mdfind -name png

works well for me. But adding `-only` flag, even in the correct directory, does not return anything.


Any idea what went wrong?



MacBook Pro 13″, macOS 13.4

Posted on May 15, 2024 10:19 AM

Reply
1 reply

May 15, 2024 11:32 AM in response to mbp_user_

mbp_user_ wrote:

Hi

I was trying to run mdfind on some of my files, when I realized the `-onlyin` flag is broken.

Running the command normally:
mdfind -name png
works well for me. But adding `-only` flag, even in the correct directory, does not return anything.

Any idea what went wrong?




from the manual—

man mdfind | more



if if is not working as you expect —

you can file a bug report /submit your Apple Feedback here: Product Feedback - Apple


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mdfind "-onlyin" flag does not return anything

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.