Interface to be used with deleteFilesInTree.
simply return true or false. With deleteFilesInTree, true would indicate that the file should be deleted.