To download a file from the terminal I am currently using:
curl -X GET https://api.box.com/2.0/files/FILE_ID/content -H "Authorization: Bearer AUTH_TOKEN" -L >> filename
To now download an entire directory, I do:
curl -X GET https://api.box.com/2.0/folders/FOLDER_ID/items -H "Authorization: Bearer AUTH_TOKEN" -L >> output
I get a JSON file with the list of filenames (incomplete)
- How to download all the files in a directory from the above command?
- How to make sure it's complete?
Please sign in to leave a comment.