jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
328 stars 45 forks source link

Feature: exclude paths #24

Open klodeckl opened 13 years ago

klodeckl commented 13 years ago

How about a new feature in the conf file: Exclude paths. E.g. if you got an iTunes library, then you could exclude folders like, Previous iTunes Libraries, Mobile Applications or Album Artwork.

pipian commented 12 years ago

I've made an (admittedly naïve) patch: https://github.com/pipian/forked-daapd/commit/3fca76ba23e49f6a62c5adacb5907e7db63685c0

It could probably be improved by caching the return values of m_realpath for each exclude_directories entry in a map. Since the number of excluded directories is relatively low for me, it's not really a worthwhile optimization.