Example #1
0
        IEnumerable <RelativePath> GetCurrentIconFoldersFromDirectory(FolderTraversalHistory folders)
        {
            var debug = IsDebug(folders);

            while (folders.Up())
            {
                //TODO: Remove ToArray() and strPaths
                var paths    = GetRelativePaths(folders).ToArray();
                var strPaths = paths
                               //.Where(p=>Paths.Exists(p.FullName))
                               .Select(p => p.FullName).ToArray();
                foreach (var path in paths)
                {
                    yield return(path);
                }
                //if (folders.IsRoot()) break;
            }
        }
Example #2
0
        => false;    // current?.FullName?.Contains("DEBUG_OFF") ?? false;

        IEnumerable <IconGenerationFolder> GetCurrentIconFoldersFromDirectory(FolderTraversalHistory folders, int priority)
        {
            //var debug = IsDebug(folders);
            var depth = 0;

            while (folders.Up())
            {
                depth++;
                var paths = GetRelativePaths(folders, folders.Original, priority);
                //.ToArray();
                //var strPaths = paths
                //    //.Where(p=>Paths.Exists(p.FullName))
                //    .Select(p => p.Directory.FullName).ToArray();
                foreach (var path in paths)
                {
                    yield return(new IconGenerationFolder(path, depth, folders));
                }
                //if (folders.IsRoot()) break;
            }
        }