Add outtmplfn to filemetadata. Improve getFiles.
Merge pull request #4543 from AndresTanasijczuk/logfmd

Add outtmplfn to filemetadata. Improve getFiles.