docspell/dsc

exclude subfolders from watched folder

sir-andreas opened this issue · 4 comments

Hi,

would it be possible to add a command line option to exclude certain subfolders or patterns from beeing considered for an upload? Backgroud for this request is, that sometimes sum index programs create certain files or folders in my consume directoy which confuse the watch deamon.

Best regards,
Andreas

eikek commented

Hi @sir-andreas , would the --matches and --not-matches option work for you? Not sure if you have seen them, they can be found somewhere in dsc upload --help.

how do I have to configure the -not-matches option in order to ignore subfolders? I just managed it to ignore files.

how do I have to configure the -not-matches option in order to ignore subfolders? I just managed it to ignore files.

Found it out by myself in the meantime ... anyway, thank you very much for your support and this great piece of software! 👍

eikek commented

Ah great! I actually had to look it up, too. For reference: this library is used; you can specify two asterisks ** - that would match multiple subdirectories.