I'm a student and would like to download some course materials using command line interface and have to have the original file structure preserved.
I think the command should be something like:
curl 'https://<canvas>/api/v1/courses/<sis_course_id>' \
-H 'Authorization: Bearer <token>'
-O 'foldername' --create-dirs
But this doesn't work.