-
Notifications
You must be signed in to change notification settings - Fork 83
How to exclude directories? #174
Description
I want to scan a directory and all it's subdirectories excluding one substructure where I have constantly changing content which I don't care about at the moment.
The documentation of the -e flag is a bit sparse. I already tried to specify the directory but using strace I saw that duc indexed files in one of the directories. What kind of syntax does the -e flag understand?
Here is what I'm doing:
I have a /etc/ducrc file:
[global]
database /var/cache/duc.db
[ls]
recursive
classify
color
[index]
check-hard-links
one-file-system
I'm using duc-nox version 1.4.2-1 on Debian. The commands I already tried:
duc index --exclude=/srv/some/structure/exclude /srvduc index --exclude=/srv/some/structure/exclude/*/* /srvtheexcludedirectory has one level of subdirectories in which the actual files are
The general problem I have with these directories is that scanning them does not finish because files are continuously added and deleted and duc does not stop scanning the directories because there is always some new content in them. That is at least my assumption after letting it run for several days without it ever finishing.