private static void GetScripts(LibraryConfig 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); } } }
private static void GetScripts(LibraryConfig libConfig, ArrayList 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.Add(filename); } } }
private static void GetScripts(LibraryConfig 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); } }
private static void GetScripts(LibraryConfig libConfig, ArrayList 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.Add(filename); } }