Пример #1
0
        static Func <string, string> Finded(FileSystemVisitor file, string abort, string clear, int choice)
        {
            var  str        = file.OutputFolder(choice);
            bool checkAbort = false;

            foreach (var item in str)
            {
                bool checkDivided = false;
                var  divided      = item.Split("\\");
                for (int i = 0; i < divided.Length; i++)
                {
                    if (divided[i].EndsWith(abort))
                    {
                        checkAbort = true;
                    }
                    if (divided[i] == clear)
                    {
                        checkDivided = true;
                    }
                }
                if (!checkDivided && !checkAbort)
                {
                    for (int i = 0; i < divided.Length; i++)
                    {
                        Console.Write(divided[i] + @"\");
                    }
                    Console.WriteLine();
                }
            }

            return(null);
        }