eikek / eikek/docspell

Avoid deleting the collective-folder with dcs

Open
#1,659 5 comments 0 reactions 0 assignees View on GitHub
bug dsc
Dominant language
Elm
Stars
2.3k
Forks
184
Avg merge
8h 2m
Merged PRs (30d)
4

Description

First of all: Awesome software! I highly appreciate it.

I have a very small issue that I don't manage to resolve:

I mounted a cifs directory into my dsc container, enabling it to fetch new scanned documents from my NAS. This works flawlessly. Unfortunately, the "--delete"-flag not only deletes the imported pdf-files but the collective directories (inside /opt/docs/[collective]) too. This is quite problematic as my scanner is sending the scans there. This will fail if the directory is not existent.

How can this behaviour be avoided?

```
image: docspell/dsc:latest
container_name: docspell-consumedir
command:
- dsc
- "-d"
- "http://docspell-restserver:7880"
- "upload"
- "--matches"
- "**/*.pdf"
- "--traverse"
- "--poll"
- "120"
- "--delete"
- "-i"
- "--not-matches"
- "**/.*"
- "--header"
- "Docspell-Integration:xxx"
- "/opt/docs"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.