예제 #1
0
        private static void GetScripts(Config.Library libConfig,
                                       Hashtable list, string path, string type)
        {
            foreach (string dir in Directory.GetDirectories(path))
            {
                string baseName = Path.GetFileName(dir).ToLower();
                if (baseName == ".svn" || baseName == "_svn" ||
                    baseName == "_darcs" || baseName == ".git" ||
                    baseName == ".hg" || baseName == "cvs")
                {
                    continue;
                }

                GetScripts(libConfig, list, dir, type);
            }

            foreach (string filename in Directory.GetFiles(path, type))
            {
                /* XXX: pass relative filename only */
                if (libConfig == null || !libConfig.GetIgnoreSource(filename))
                {
                    list[filename] = File.GetLastWriteTime(filename);
                }
            }
        }
예제 #2
0
        private static void GetScripts(Config.Library libConfig,
                                       Hashtable list, string path, string type)
        {
            foreach (string dir in Directory.GetDirectories(path))
            {
                GetScripts(libConfig, list, dir, type);
            }

            foreach (string filename in Directory.GetFiles(path, type))
            {
                /* XXX: pass relative filename only */
                if (libConfig == null || !libConfig.GetIgnoreSource(filename))
                {
                    list[filename] = File.GetLastWriteTime(filename);
                }
            }
        }