Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folder watcher #628

Open
WolfgangFahl opened this issue Aug 24, 2024 · 2 comments
Open

folder watcher #628

WolfgangFahl opened this issue Aug 24, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request feature request

Comments

@WolfgangFahl
Copy link

As asked in https://www.reddit.com/r/Papermerge/comments/1ez7n06/papermount_making_inbox_and_db_available_via_mount/
i would love to have an option to make the inbox available via a "folder watcher". I want to configure my scan snap scanners so that they scan to a network directory. When a new pdf files shows up it should be immediately processed. An option for a restful callback that is triggered so that i can react in my own system and e.g. supply tags and other stuff (possibly via AI) and keep a different system in sync would be great.

@ciur
Copy link
Owner

ciur commented Aug 24, 2024

It is super simple to implement in (your favorite) any programming language.
It is just a basic REST API client which will watch (local) folder, and whenever there is a new document/folder just use
REST API to upload documents :)

Here is an example of REST API client code which uploads documents via REST API:

https://github.com/papermerge/papermerge-cli/blob/master/papermerge_cli/rest/documents.py#L14

I wrote it, but personally I don't use it.

@WolfgangFahl
Copy link
Author

@ciur that is good news indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

2 participants