public Func <string, bool> GetFileNameFilterPredicate()
        {
            var fileFilter = _searchCriteria.GetFileNameFilter();

            return(filePath =>
            {
                try
                {
                    if (fileFilter == null || fileFilter.Length <= 0)
                    {
                        return true;
                    }
                    //if (fileFilter.Any(p => p.Equals("*"))) { return true; }
                    if (fileFilter.Contains("*"))
                    {
                        return true;
                    }

                    var fileInfo = new FileInfo(filePath);
                    return fileFilter.Any(filter => fileInfo.Name.Contains(filter));
                    //return fileFilter.Contains(fileInfo.Name);
                }
                catch (Exception ex)
                {
                    return false;
                }
            });
        }