"Libraries" (a la Windows 7) on OS X?

There's one feature from Windows 7 that I sort of like (yeah, yeah, I know...) and would like to implement (differently) on OS X. It's what they call "Libraries". It allows you to have the contents of multiple on-disk directories show up in Windows Explorer (their version of the Finder, for any who've had the pleasure to never need to use Windows) as though they were one directory.

The way I'd like to use this is to have directories from multiple drives browsable as though they were all on one drive. So, for instance the following directories:

~/Resources/
/Volumes/Portable Library/Resources/
/Volumes/FreeNAS Server/Resources/

would all be visible together as a single "Resources" directory. Ideally my ~/Resources would display the contents of the other two, but it wouldn't kill me if I had to use a different path, such as /Volumes/Combined/Resources/.

Is this possible to do somehow? Maybe using something like the mhddfs command? (That is mentioned here, but it is unclear from the answer whether it can be used in the way I'm describing: I want to merge directories across several drives, not the entire drives themselves. It also may not exist for OS X.) Also, when any given drive or file server is unavailable, it should handle it gracefully and not treat it as a failure, since my FreeNAS server will only be around when I'm home, and I won't always have various external drives plugged in.

(If you're wondering why I'd ever want to do this, take a different example: iTunes libraries. It would be nice to have the bulk of it on a file server, but have the most-played songs available on my MacBook Air.)

Can this be done?


I was looking into doing this also today, and so far the only solution I've found is to use a smart folder, hacked to search multiple locations:


What you want to do is open one of your folders (eg. /Volumes/Portable Library/Resources/) hit CMD+F and then set your desired filtering. eg. I set mine to Kind > Folders.

Save the search as a smart folder (it doesnt matter where) then open up that smart folder in TextEdit and look for the following:

/Volumes/Portable Library/Resources/`

There will be multiple instances of the above string, you want to replace them all with new strings that contain the paths you want to search.

In your case it would look like this:

<string>~/Resources/</string>
<string>/Volumes/Portable Library/Resources/</string>
<string>/Volumes/FreeNAS Server/Resources/</string>

Save the file, then when you open the smart folder it will display search results form all three folders.

If you use the column view in Finder you can move through these folders as if they are all together.


Unfortunately the downside of this is that its searching resursively, so you will get all the folders within your first three, plus any folders in those. I'm yet to find a way to disable recursive search yet...