aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorMelanie2009-08-07 21:59:54 +0100
committerMelanie2009-08-07 21:59:54 +0100
commite97beb07c94571549da0c635d469190bff8ab918 (patch)
tree2c6814618687dab66f0ebe9acc692eb54ca092b2 /OpenSim/Framework
parentThank you, Godfrey, for a patch that implements osGetLinkPrimitiveParams (diff)
downloadopensim-SC_OLD-e97beb07c94571549da0c635d469190bff8ab918.zip
opensim-SC_OLD-e97beb07c94571549da0c635d469190bff8ab918.tar.gz
opensim-SC_OLD-e97beb07c94571549da0c635d469190bff8ab918.tar.bz2
opensim-SC_OLD-e97beb07c94571549da0c635d469190bff8ab918.tar.xz
Add extensive debug output to Util.Glob
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Util.cs9
1 files changed, 9 insertions, 0 deletions
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
1113 1113
1114 public static string[] Glob(string path) 1114 public static string[] Glob(string path)
1115 { 1115 {
1116 m_log.DebugFormat("[GLOB]: Globbing {0}", path);
1116 string vol=String.Empty; 1117 string vol=String.Empty;
1117 1118
1118 if (Path.VolumeSeparatorChar != Path.DirectorySeparatorChar) 1119 if (Path.VolumeSeparatorChar != Path.DirectorySeparatorChar)
@@ -1145,17 +1146,25 @@ namespace OpenSim.Framework
1145 List<string> addpaths = new List<string>(); 1146 List<string> addpaths = new List<string>();
1146 foreach (string p in paths) 1147 foreach (string p in paths)
1147 { 1148 {
1149 m_log.DebugFormat("[GLOB]: Getting directories (wildcard: {0}) from path {1}", c, p);
1148 string[] dirs = Directory.GetDirectories(p, c); 1150 string[] dirs = Directory.GetDirectories(p, c);
1149 1151
1150 if (dirs.Length != 0) 1152 if (dirs.Length != 0)
1151 { 1153 {
1152 foreach (string dir in dirs) 1154 foreach (string dir in dirs)
1155 {
1156 m_log.DebugFormat("[GLOB]: Adding path {0} to search list", Path.Combine(path, dir));
1153 addpaths.Add(Path.Combine(path, dir)); 1157 addpaths.Add(Path.Combine(path, dir));
1158 }
1154 } 1159 }
1155 1160
1161 m_log.DebugFormat("[GLOB]: Getting files (wildcard: {0}) from path {1}", c, p);
1156 string[] files = Directory.GetFiles(p, c); 1162 string[] files = Directory.GetFiles(p, c);
1157 foreach (string f in files) 1163 foreach (string f in files)
1164 {
1165 m_log.DebugFormat("[GLOB]: Adding file {0} to result list", f);
1158 found.Add(f); 1166 found.Add(f);
1167 }
1159 } 1168 }
1160 paths = addpaths; 1169 paths = addpaths;
1161 } 1170 }