Fix xisfile, xgetsize, xisdir, xlistdir in private repo
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-06-30T15:29:43Z
https://github.com/huggingface/datasets/pull/4608#issuecomment-1171363720
https://api.github.com/repos/huggingface/datasets/issues/4608
IC_kwDODunzps5F0ZeI
https://api.github.com/repos/huggingface/datasets/issues/comments/1171363720/reactions
2022-07-06T12:45:59Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1171363720
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
MEMBER
Added tests for xisfile, xgetsize, xlistdir and xglob for private repos, and also tests for xwalk that was untested
2022-07-05T08:49:53Z
https://github.com/huggingface/datasets/pull/4608#issuecomment-1174793509
https://api.github.com/repos/huggingface/datasets/issues/4608
IC_kwDODunzps5GBe0l
https://api.github.com/repos/huggingface/datasets/issues/comments/1174793509/reactions
2022-07-05T08:49:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1174793509
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
`xisfile` is working in a private repository when passing a chained URL to a file inside an archive, e.g. `zip://a.txt::https://huggingface/datasets/username/dataset_name/resolve/main/data.zip`. However it's not working when passing a simple file `https://huggingface/datasets/username/dataset_name/resolve/main/data.zip`.

This is because the authentication headers are not passed correctly in this case.

This is causing dataset streaming to fail in private parquet repositories, as noted in https://github.com/huggingface/datasets/issues/4605

I fixed `xisfile` and the other functions that behave the same way: xgetsize, xisdir and xlistdir

TODO:
- [x] tests

fix https://github.com/huggingface/datasets/issues/4605