示例#1
0
        public static void SyncFolders(string src, string dst, StringCollection includeGlobs, StringCollection excludeGlobs)
        {
            Glob[] includes;
            Glob[] excludes;

            includes = GlobMatcher.PrepareGlobs(includeGlobs);
            excludes = GlobMatcher.PrepareGlobs(excludeGlobs);

            SimpleFolderSync.SyncFolders(src, dst, includes, excludes);
        }
示例#2
0
        public static bool IsIncluded(StringCollection files, StringCollection includeGlobs)
        {
            bool result;

            Glob[] includes;

            result   = false;
            includes = GlobMatcher.PrepareGlobs(includeGlobs);

            for (int i = 0; i < files.Count; i++)
            {
                if (GlobMatcher.IsIncluded(files[i], includes))
                {
                    result = true;
                    break;
                }
            }

            return(result);
        }