Error when downloading datasets to non-traditional cache directories
{'login': 'dar-tau', 'id': 45885627, 'node_id': 'MDQ6VXNlcjQ1ODg1NjI3', 'avatar_url': 'https://avatars.githubusercontent.com/u/45885627?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/dar-tau', 'html_url': 'https://github.com/dar-tau', 'followers_url': 'https://api.github.com/users/dar-tau/followers', 'following_url': 'https://api.github.com/users/dar-tau/following{/other_user}', 'gists_url': 'https://api.github.com/users/dar-tau/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/dar-tau/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/dar-tau/subscriptions', 'organizations_url': 'https://api.github.com/users/dar-tau/orgs', 'repos_url': 'https://api.github.com/users/dar-tau/repos', 'events_url': 'https://api.github.com/users/dar-tau/events{/privacy}', 'received_events_url': 'https://api.github.com/users/dar-tau/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
[]
Same here !
## Describe the bug
When the cache directory is linked (soft link) to a directory on a NetApp device, the download fails. 

## Steps to reproduce the bug
```bash
ln -s /path/to/netapp/.cache ~/.cache
```

```python
load_dataset("imdb")
```

## Expected results
Successfully loading IMDB dataset

## Actual results
```
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33432835, 
num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=0, num_examples=0,
 dataset_name='imdb')}, {'expected': SplitInfo(name='test', num_bytes=32650697, num_examples=25000, dataset_name='imdb'),
 'recorded': SplitInfo(name='test', num_bytes=659932, num_examples=503, dataset_name='imdb')}, {'expected':
 SplitInfo(name='unsupervised', num_bytes=67106814, num_examples=50000, dataset_name='imdb'), 'recorded':
 SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```

## Environment info
<!-- You can run the command `datasets-cli env` and copy-and-paste its output below. -->
- `datasets` version: 1.1.2
- Platform: Ubuntu 
- Python version: 3.8

## Extra notes
Stranger yet, trying to debug the phenomenon, I found the range of results to vary a lot without clear direction:
 - With `cache_dir="/path/to/netapp/.cache"` the same thing happens.
 - However, when linking `~/netapp/` to `/path/to/netapp` *and* setting `cache_dir="~/netapp/.cache/huggingface/datasets"` - it does work
 - On the other hand, when linking `~/.cache` to `~/netapp/.cache` without using `cache_dir`, it does work anymore.

While I could test it only for a NetApp device, it might have to do with any other mounted FS.

Thanks :)


{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2926/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}