mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-26 01:16:16 +00:00
Change: Use fnmatch for workflow path matching (#5250)
This commit is contained in:
@@ -296,7 +296,10 @@ def consumable_document_matches_workflow(
|
||||
if (
|
||||
trigger.filter_path is not None
|
||||
and len(trigger.filter_path) > 0
|
||||
and not document.original_file.match(trigger.filter_path)
|
||||
and not fnmatch(
|
||||
document.original_file,
|
||||
trigger.filter_path,
|
||||
)
|
||||
):
|
||||
reason = (
|
||||
f"Document path {document.original_file}"
|
||||
|
Reference in New Issue
Block a user