Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
How can I get a list/report of every file used in my course?
Besides highlights all of the files in every folder to copy/paste....anyone know of a way to pull a report or get a list of every file in a course?
Thanks!
Stephanie
Solved! Go to Solution.
Hey Stephanie,
I attached a Python script that worked pretty well. It just prints the file names to the console, nothing fancy; so not that great if you needed a spreadsheet. You'll need to edit it to include your token, the ID of the target course, as well as your institutional Canvas domain before it will run. Also, you'll need Python 3.x installed with the Requests library. Let me know if you give it a whirl!
I'm not sure how much programming background you have, but this can be done using the Files API. Here's a link to the documentation:
Files - Canvas LMS REST API Documentation
You would want the following:
It would return a paginated list of the files (with their properties) in JSON format, which could be printed or written to a spreadsheet.
Hey Stephanie,
I attached a Python script that worked pretty well. It just prints the file names to the console, nothing fancy; so not that great if you needed a spreadsheet. You'll need to edit it to include your token, the ID of the target course, as well as your institutional Canvas domain before it will run. Also, you'll need Python 3.x installed with the Requests library. Let me know if you give it a whirl!
Hey Brian,
This is SUPER helpful for a project I'm doing. We are trying to clean up our files and this list would make it easy to identify all the files used in a course as people click through every page of a course. We are a curriculum department of 2 with little programming experience so this may sound extremely manual and time consuming- but it's all we got.
Again, thanks so much!
To participate in the Instructure Community, you need to sign up or log in:
Sign In
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.