Exemple #1
0
        public string[] GetList(bool forceRefresh = false, bool includeMarked = false)
        {
            Func <string, bool> includeFile = (path) =>
            {
                if (!includeMarked && _excludeMarked && path.Contains(FilenameUtils.MarkerString))
                {
                    return(false);
                }
                else if (!FilenameUtils.IsExtensionInList(path, _extensionsAllowed))
                {
                    return(false);
                }
                else
                {
                    return(true);
                }
            };

            return(_list.GetList(forceRefresh).Where(includeFile).ToArray());
        }