If I have a data locally organized into a folder/s hierarchy, is there a way I can recursively upload the whole data tree to Synapse ?
Created by Abhishek Pratap apratap Yes. If you use a programming language that can walk through your directory tree recursively, you can do this. You need to be able to determine 1) if something in your tree is a file or a folder, and 2) what it's parent folder is.
See this Github Gist (https://gist.github.com/larssono/db35917cf58440fe0b19) for an implementation in Python.
Hi Ahbi:
We don't have something built into any of the clients - primarily because we haven't figured out how to supply the proper proper metadata at upload time (i.e. annotations and provenance). That being said I wrote a small script for this specific purpose:
####[synapse_upload_directory_tree.py](https://gist.github.com/larssono/db35917cf58440fe0b19)
I suggest updating this script adding support for the specific metadata you want to apply.