[GH-ISSUE #628] folder watcher #495

Open
opened 2026-02-25 21:32:02 +03:00 by kerem · 2 comments
Owner

Originally created by @WolfgangFahl on GitHub (Aug 24, 2024).
Original GitHub issue: https://github.com/ciur/papermerge/issues/628

Originally assigned to: @ciur on GitHub.

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.

Originally created by @WolfgangFahl on GitHub (Aug 24, 2024). Original GitHub issue: https://github.com/ciur/papermerge/issues/628 Originally assigned to: @ciur on GitHub. 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.
Author
Owner

@ciur commented on GitHub (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.

<!-- gh-comment-id:2308475227 --> @ciur commented on GitHub (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.
Author
Owner

@WolfgangFahl commented on GitHub (Aug 25, 2024):

@ciur that is good news indeed.

<!-- gh-comment-id:2308850216 --> @WolfgangFahl commented on GitHub (Aug 25, 2024): @ciur that is good news indeed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#495
No description provided.