Extend support for streaming datasets that use pathlib.Path.glob
MEMBER
I am thinking that ideally we should call `fs.glob()` instead...
2021-09-07T15:17:58Z
https://github.com/huggingface/datasets/pull/2876#issuecomment-914398604
https://api.github.com/repos/huggingface/datasets/issues/2876
IC_kwDODunzps42gJ2M
https://api.github.com/repos/huggingface/datasets/issues/comments/914398604/reactions
2021-09-07T15:17:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/914398604
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
Thanks, @lhoestq: the idea of adding the mock filesystem is to avoid network calls and reduce testing time ;) 

I have added `rglob` as well and fixed some bugs.
2021-09-10T09:03:23Z
https://github.com/huggingface/datasets/pull/2876#issuecomment-916750479
https://api.github.com/repos/huggingface/datasets/issues/2876
IC_kwDODunzps42pICP
https://api.github.com/repos/huggingface/datasets/issues/comments/916750479/reactions
2021-09-10T09:15:16Z
https://api.github.com/repos/huggingface/datasets/issues/comments/916750479
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
This PR extends the support in streaming mode for datasets that use `pathlib`, by patching the method `pathlib.Path.glob`.

Related to #2874, #2866.

CC: @severo