Fixes: #2638 Allowing to send an array to listing instead of a filename