Fix double dots in data files
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-06-15T16:37:17Z
https://github.com/huggingface/datasets/pull/4505#issuecomment-1156693296
https://api.github.com/repos/huggingface/datasets/issues/4505
IC_kwDODunzps5E8b0w
https://api.github.com/repos/huggingface/datasets/issues/comments/1156693296/reactions
2022-06-15T17:15:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156693296
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
The CI fails are unrelated to this PR (apparently something related to `seqeval` on windows) - merging :)
2022-06-15T17:05:47Z
https://github.com/huggingface/datasets/pull/4505#issuecomment-1156722819
https://api.github.com/repos/huggingface/datasets/issues/4505
IC_kwDODunzps5E8jCD
https://api.github.com/repos/huggingface/datasets/issues/comments/1156722819/reactions
2022-06-15T17:05:47Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1156722819
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
As mentioned in https://github.com/huggingface/transformers/pull/17715 `data_files` can't find a file if the path contains double dots `/../`. This has been introduced in https://github.com/huggingface/datasets/pull/4412, by trying to ignore hidden files and directories (i.e. if they start with a dot)

I fixed this and added a test

cc @sgugger @ydshieh 