Given a rsync filter file that looks something like this, is there a way to list all files in the directory that satisfy the filter?
+ /var/lib/hello/samba/*
- /var/lib/world/sdfs/
- /var/lib/world/staging/
- /var/lib/world/uml/
+ /var/lib/world/**
Is there a way to check if a specific path string satisfies the filter? For instance, the input path string could be /var/lib/hello/samba/file1 or /var/lib/world/dir1 or /var/lib/world/file2