Fix public repository listFiles method that I broke with PR669.