Allow arbitrary wildcards in config includes. Things like

Include-Modules = "addin-modules/*/config/*.ini" will now work.
Adds Util.Glob, which will resolve a globbed path into a string list.
This commit is contained in:
Melanie
2009-08-06 02:29:12 +01:00
parent c73ee1d06e
commit efc57bc3d7
2 changed files with 55 additions and 3 deletions

View File

@@ -188,10 +188,11 @@ namespace OpenSim
{
string path = Path.GetFullPath(
Path.Combine(Util.configDir(), file));
if (File.Exists(path))
string[] paths = Util.Glob(path);
foreach (string p in paths)
{
if (!sources.Contains(path))
sources.Add(path);
if (!sources.Contains(p))
sources.Add(p);
}
}
}