private List <string> Files(string[] allowedExtensions)
        {
            var pred = new FileExtPred(allowedExtensions);

            return(fp.GetDirectoryContents(string.Empty)
                   .Select(f => f.Name)
                   .Where(pred.Test)
                   .ToList());
        }
        private static bool IsInValidDocument(string fileName)
        {
            var documentExtensionsPredicate = new FileExtPred(TYPES2);

            return(!documentExtensionsPredicate.Test(fileName));
        }
        private static bool IsInValidImage(string fileName)
        {
            var imageExtensionsPredicate = new FileExtPred(TYPES);

            return(!imageExtensionsPredicate.Test(fileName));
        }