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:  

  1. 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) ) 

  1. Zip the files to the top level (so that it is one zipped file)  
  2. In your Dataverse, click Add data / New dataset 
  3. 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)   
  4. 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 
  • Last Updated May 19, 2025
  • Views 11
  • Answered By Rebecca Dikow

FAQ Actions

Was this helpful? 0 0