Create a Smart Folder for recent files but exclude certain folders

The built-in Recent search looks everywhere, including all connected cloud services. I use Dropbox and iCloud personally, but also have connected Google Drive folders for my clients. I don't want those client files showing up in Recent.


I can create a new "Recent" Smart Folder, but there seems no way to exclude a top-level parent folder. The "Document Container" option seems not to work. Yes, I can exclude those folders from Spotlight, but I do occasionally want to search them, so it's a sledgehammer solution for my Recent Files problem.



Posted on Nov 20, 2025 8:21 AM

Reply
2 replies

Nov 20, 2025 10:30 AM in response to mattfrombeacon

Can you move the Google Drive to a different volume?


One neat trick you can do with recent versions of macOS is create new top-level volumes. They share the same storage as the "data" volume, but they're different.


In my case, I created a "shared" volume and disabled permissions on the volume. Then, I could create files as a test user and more easily share them with my real user without permissions problems that I was having with the /Users/Shared folder.


So while the "Document Container" option doesn't seem to work (I confirmed this), you can limit the search scope to a single location.


  1. Open a new Finder window and click on your home directory in the sidebar. (This is important).
  2. Create a new Smart Folder and set your recent date range.
  3. Next to "Search", limit the search scope to your home directory.
  4. Save as a new Smart Folder.


This will perform a recent search just in your home directory. If you have files on a separate volume, they won't be included.


I think this may be your only option due to iCloud. It's possible to hack up a saved search using a text editor and manually specify multiple paths to include. But there's no option to exclude paths. And "iCloud" is a made-up, Finder artifact that includes data from many different places.


If you know the exact paths of your DropBox and Google Drive data, then it might be possible. I don't use those products so I'm unfamiliar with how they're organized internally. But I know iCloud uses multiple locations in "~/Library/Mobile Documents". Apple's 3rd party cloud API might require those other service to use the same location. I just don't know.


If you can move Google Drive to a shared volume, that would be a quick-n-easy fix.

Nov 20, 2025 11:24 AM in response to etresoft

Thanks! I like the sound of that plan in theory.


Unfortunately, Google Drive is stuck storing files in the ~/Library/CloudStorage folder, so afaik can't be moved. Dropbox, even though it also uses FileProvider, seems to be able to store on any mounted volume.


There are ways to move/symlink the whole CloudStorage folder, but that's too much of a wholesale kludge to try to accomplish what I want. The search continues!

Create a Smart Folder for recent files but exclude certain folders

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