19

In older releases of macOS one could create .metadata_never_index in any folder to prevent it and its children from being indexed. This seems to have stopped working at some point. Does this or another similar method work in Catalina and Mojave?

Note: I am not interested in adding .noindex to file/folder names.

1
  • 3
    Same problem and question here. Spotlight on Catalina seems to be ignoring .metadata_never_index on my external USB drives. It's also indexing the drive after I add it to "Privacy" in System Preferences. I'd very much like a solution to this. Commented Jul 11, 2020 at 8:53

2 Answers 2

3

Your suspicion is correct. Apple has (criminally) went ahead and removed support for not indexing an entire folder. While I pray they add this back, its unlikely, as they have made the same change in the file indexer for iCloud Documents and Data Sync (.nosync files in folders no longer work, you need .nosync in the file name).

You said you don't want to change file names, so unfortunately there is nothing you can do.

If you could settle for the illusion of unchanged file names, you could rename the files to be hidden (start with a .), and end with .noindex, and then create a symlink to this hidden file from a link with the originally desired file name.

This answer regarding the equivalent issue for iCloud Sync is along the lines of what you'd need to do (note the accepted answer on the linked question is outdated and no longer correct)

1
  • Oh how I wish we could live without Spotlight and iCloud readily on macOS and still retain meaningful functionality! It's really quite disgusting and upsetting.
    – ylluminate
    Commented Feb 16, 2022 at 21:05
1

Please see my recent post about problems with folders (or volumes) with file ".metadata_never_index_unless_rootfs"). In Catalina 10.15.7 it does work, and caused me a lot of problems after a failed update (to Monterey) left such files at the top of most of my volumes.

You must log in to answer this question.

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