PDA

View Full Version : Making some file types not appear in Finder (for a certain directory)



battye
14th April 2013, 03:46 PM
I have a directory, and a lot of sub-directories, which I have connected to a WD TV. As part of the WD TV it gets movie information and stores them as .metathumb and .xml files. This is fine for viewing on the WD TV because I don't see these files, but when I'm looking at the movies in Finder besides the actual movie files the display is full of the xml/metathumb files.

Is there a way that, for just one directory (and all of its subdirectories) I can hide the xml and metathumb files?

Thanks

bartron
14th April 2013, 04:12 PM
in terminal:
chflags hidden *.xml

you'll need to run it whenever a new .xml or .metathumb is created or you can create an automator action that does this whenever the folder contents change (or if you know your stuff, a launchd daemon plist that watches the folder for you)

battye
14th April 2013, 05:31 PM
Will that make it apply to all sub-directories as well?