Exemplo n.º 1
0
            public bool AddFileToList_Callback(string rootpath, string path, FileAttributes attributes)
            {
                if (Worker.CancellationPending)
                {
                    throw new AbortException();
                }

                if (!Filter.ShouldInclude(rootpath, path))
                {
                    return(false);
                }

                if ((attributes & FileAttributes.Directory) == 0 && (attributes & Utility.ATTRIBUTE_ERROR) == 0)
                {
                    Results.Add(new ResultItem(path));
                }

                return(true);
            }