How do I upload files to the Yale Dataverse so that they maintain a tree structure?
Answer
To maintain a folder structure and file paths, you must upload a zipped folder:
- Save your files under one directory (folder); you can choose to have sub-directories, for example,
Zipped_folder/
├── data
│ ├── my_data.csv
├── analysis
│ └── my_script.R
├── DESCRIPTION
└── README.md
(adapted from: https://the-turing-way.netlify.app/reproducible-research/compendia(Link is external) (Link opens in new window) )
- Zip the files to the top level (so that it is one zipped file)
- In your Dataverse, click Add data / New dataset
- Follow general guidelines for File Upload here: https://guides.dataverse.org/en/5.13/user/dataset-management.html(Link is external) (Link opens in new window)
- Upload the zipped file to Dataverse as you would any other single file via “drag and drop” or “select file to add”
- Dataverse will maintain your directory structure
- Dataverse will open the files and read in the relevant information (including tabular data files)
- Uploading a folder will enable “tree view” for end-user to view and download the folder