"a list of files" -> "files in a list", because a file list itself cannot be protected
Pywikibot:Delete-from-file/en ditto
The bot is protecting or deleting a couple of files given by a list but it is not doing this in the list itself.