Feature request: match path type (folder/file) with regex
Adding 'enhancement' label based on user approval. Existing labels are kept for issue #939.
Well, what you describe in first paragraph is not necessarily a bug or anything unexpected. "/" is the separator and only there if there is something after it to separate. Only exception: "/" (root directory).
In general, changes of matching behaviour are problematic: some peoples backups will change behaviour, things may go wrong.
there could be a new type of matcher that ensures tailing slashes for folders in regex matches
Hmm... maybe not a complete new matcher but what about matcher options like "re:d:^/blah/blah/" where d means "differentiate between files and dirs"?
there are no matcher options, so a new matcher type ^^ also the pre behaviour is new (after all it needs to ensure the folder prefix)