diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Services/FSAssetService/FSAssetService.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Services/FSAssetService/FSAssetService.cs b/OpenSim/Services/FSAssetService/FSAssetService.cs index 4d47589..27b04f7 100644 --- a/OpenSim/Services/FSAssetService/FSAssetService.cs +++ b/OpenSim/Services/FSAssetService/FSAssetService.cs | |||
@@ -186,7 +186,18 @@ namespace OpenSim.Services.FSAssetService | |||
186 | throw new Exception("Configuration error"); | 186 | throw new Exception("Configuration error"); |
187 | } | 187 | } |
188 | 188 | ||
189 | // OSGrid format is /3/3/, OpenSims default format is /2/2/2/4/. Try to figure out which we have. | ||
190 | List<string> dirs = new List<string>(Directory.EnumerateDirectories(m_FSBase)); | ||
191 | foreach (var dir in dirs) | ||
192 | { | ||
193 | if (3 == dir.Substring(dir.LastIndexOf(Path.DirectorySeparatorChar) + 1).Length) | ||
194 | { | ||
195 | m_useOsgridFormat = true; | ||
196 | break; | ||
197 | } | ||
198 | } | ||
189 | m_useOsgridFormat = assetConfig.GetBoolean("UseOsgridFormat", m_useOsgridFormat); | 199 | m_useOsgridFormat = assetConfig.GetBoolean("UseOsgridFormat", m_useOsgridFormat); |
200 | m_log.InfoFormat("[FSASSETS]: UseOsgridFormat is {0}", m_useOsgridFormat); | ||
190 | 201 | ||
191 | // Default is to show stats to retain original behaviour | 202 | // Default is to show stats to retain original behaviour |
192 | m_showStats = assetConfig.GetBoolean("ShowConsoleStats", m_showStats); | 203 | m_showStats = assetConfig.GetBoolean("ShowConsoleStats", m_showStats); |