From e97beb07c94571549da0c635d469190bff8ab918 Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 7 Aug 2009 21:59:54 +0100 Subject: Add extensive debug output to Util.Glob --- OpenSim/Framework/Util.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 65d4f4d..048de84 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -1113,6 +1113,7 @@ namespace OpenSim.Framework public static string[] Glob(string path) { + m_log.DebugFormat("[GLOB]: Globbing {0}", path); string vol=String.Empty; if (Path.VolumeSeparatorChar != Path.DirectorySeparatorChar) @@ -1145,17 +1146,25 @@ namespace OpenSim.Framework List addpaths = new List(); foreach (string p in paths) { + m_log.DebugFormat("[GLOB]: Getting directories (wildcard: {0}) from path {1}", c, p); string[] dirs = Directory.GetDirectories(p, c); if (dirs.Length != 0) { foreach (string dir in dirs) + { + m_log.DebugFormat("[GLOB]: Adding path {0} to search list", Path.Combine(path, dir)); addpaths.Add(Path.Combine(path, dir)); + } } + m_log.DebugFormat("[GLOB]: Getting files (wildcard: {0}) from path {1}", c, p); string[] files = Directory.GetFiles(p, c); foreach (string f in files) + { + m_log.DebugFormat("[GLOB]: Adding file {0} to result list", f); found.Add(f); + } } paths = addpaths; } -- cgit v1.1