Canvas Data 2 Header Files & Folder/File Names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on a Python script that will download all of the files in the tables available to us in the Canvas namespace. I noticed when I unzip the .gz files, some have 1 file, the others have 2 files. The ones with 2 files in them appear to be a header file and an actual data file, but the data file also includes the headers for the data. It also appears that if there are multiple files, the first one starting with 0000 in the file name is the header, Does anyone know why this is?
Also, when the files download, they download into a folder like job_some-random-text instead of the name of the table. Is there some secret voodoo for getting the folder to be named after the actual table I'm downloading? I can probably make it so once the DAP command is run to rename it after the current item in the list, but I figure the less hacky I need to make my code, the better.