Not as far as I am aware.
You could get the php script to add the file name to an array and then use a section loop to loop through and list them in the template.
{section name=num loop=$images}
{$images[num].imagename}
{/section}
or something like that
