forked-daapd icon indicating copy to clipboard operation
forked-daapd copied to clipboard

Feature: exclude paths

Open klodeckl opened this issue 15 years ago • 1 comments

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.

klodeckl avatar Dec 05 '10 14:12 klodeckl

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.

pipian avatar Apr 22 '12 17:04 pipian