# Dataset load\_datasets from directory when metadata and datafile in different folder

**URL:** <https://discuss.huggingface.co/t/dataset-load-datasets-from-directory-when-metadata-and-datafile-in-different-folder/49794>\
**Category:** 🤗Datasets\
**Created:** [August 7, 2023, 10:12am UTC](https://discuss.huggingface.co/t/dataset-load-datasets-from-directory-when-metadata-and-datafile-in-different-folder/49794 "2023-08-07T10:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrung](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@astrung](https://discuss.huggingface.co/u/astrung)\
**Post date:** [August 7, 2023, 10:12am UTC](https://discuss.huggingface.co/t/dataset-load-datasets-from-directory-when-metadata-and-datafile-in-different-folder/49794/1 "2023-08-07T10:12:26Z")

</div>

Hi. I am newbie of this library. Now I have a disk to download data, but after downloading data my disk is full, so I have to create a new metadata file in different disk. Now I have to load my downloaded data(in disk D:\Users\data) and metadata(in disk E:\data) in 1 dataset. How can I do that ?

I know if metadata and datafile in same folder, we can use Audiofolder, but because i can not put datafile and metadata in same directory, do i have another way to use audiofolder to load my data ? please help

```
from datasets import load_dataset
dataset = load_dataset("audiofolder", 
data_dir='D:\Users\data')

```

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [August 16, 2023, 2:07pm UTC](https://discuss.huggingface.co/t/dataset-load-datasets-from-directory-when-metadata-and-datafile-in-different-folder/49794/2 "2023-08-16T14:07:53Z")

</div>

No, this is not supported. In that case, it’s best to use `Dataset.from_generator` to combine the audio files with the corresponding metadata.
