-
Notifications
You must be signed in to change notification settings - Fork 18
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
Glob uses rsplit #98
Comments
This is a fork of https://github.com/ecederstrand/exchangelib. This issue should be closed in favor of ecederstrand/exchangelib#1212 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have trouble getting
Folder.glob
to work for deeper nested glob patterns. The issue seems to stem from usingrsplit
insidethe
_glob
function ofFolder
:exchangelib/exchangelib/folders.py
Line 428 in a9369b2
If we for example have the pattern
root/inbox/todos
, thenglob
won't return any folder entry even if the path exists. You usersplit('/', 1)
which will split on the first/
it encounters from the right but then stop, e.g.Afterwards you match each child of the folder with the first part of the returned array, e.g.
I think you meant to use
split
notrsplit
.split
splits starting from the left and would correctly only useroot
as the argument tofnmatch
.Did I miss something here? If my assumptions are correct I am happy to submit a small pull request to remedy this issue.
The text was updated successfully, but these errors were encountered: