I pushed a new version on GitHub with a function kobo_attachment_download, you have three parameters: x the uid/kobo_asset, the folder and if you want an indicator of progress (default to FALSE),
kobo_attachment_download(uid, “my_folder_path”)
It’ll download everything in the attachments column and will push it to a folder. I prefixed each file the with the id number of the submission (_id column) to easily retrieve that information (through regex for e.g).
The other option is a folder by id but you can end up with a lot of sub-folders and CRAN doesn’t like package functions to create a folder without the specific consent of the user.