only filter out files not directory

filterThumbnailPurgeList gets directory as first entry in list of files.
only filter the list of files and ignore directory.

Change-Id: I36a4c65c3508f36ff1079d2fc8b1059eff33e809