Ejemplo n.º 1
0
        protected static string[] Globbing(string pattern, string baseDir)
        {
            var includes = FileSetHelper.Include(pattern);

            includes = FileSetHelper.SetBaseDir(Path.Combine(TempDir, baseDir), includes);
            return(FileSetHelper.ScanImmediately(includes).ToArray());
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Scans the specified pattern.
        /// </summary>
        /// <param name="pattern">The pattern.</param>
        /// <param name="baseDir">The base dir.</param>
        /// <returns></returns>
        public static List <string> Scan(string pattern, string baseDir)
        {
            TraceHelper.trace(string.Format("Scan for {0} in {1}:", pattern, baseDir));

            var list =
                FileSetHelper.Scan(
                    FileSetHelper.SetBaseDir(baseDir,
                                             FileSetHelper.Include(pattern))).ToList();

            foreach (var file in list)
            {
                TraceHelper.trace(string.Format("  - {0}", file));
            }
            return(list);
        }