Failure to save with save_to_disk
{'login': 'M-Salti', 'id': 9285264, 'node_id': 'MDQ6VXNlcjkyODUyNjQ=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9285264?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/M-Salti', 'html_url': 'https://github.com/M-Salti', 'followers_url': 'https://api.github.com/users/M-Salti/followers', 'following_url': 'https://api.github.com/users/M-Salti/following{/other_user}', 'gists_url': 'https://api.github.com/users/M-Salti/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/M-Salti/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/M-Salti/subscriptions', 'organizations_url': 'https://api.github.com/users/M-Salti/orgs', 'repos_url': 'https://api.github.com/users/M-Salti/repos', 'events_url': 'https://api.github.com/users/M-Salti/events{/privacy}', 'received_events_url': 'https://api.github.com/users/M-Salti/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Hi thanks for reporting and for proposing a fix :)

I just merged a fix, feel free to try it from the master branch ! Closing since this has been fixed by #1923
When I try to save a dataset locally using the `save_to_disk` method I get the error:

```bash
FileNotFoundError: [Errno 2] No such file or directory: '/content/squad/train/squad-train.arrow'
```

To replicate:

1. Install `datasets` from master
2. Run this code:

    ```python
    from datasets import load_dataset
    squad = load_dataset("squad")   # or any other dataset
    squad.save_to_disk("squad")     # error here
    ```

The problem is that the method is not creating a directory with the name `dataset_path` for saving the dataset in (i.e. it's not creating the *train* and *validation* directories in this case). After creating the directory the problem resolves.
I'll open a PR soon doing that and linking this issue.

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