Make filenameFilter optional