aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-05-06 21:58:41 +0100
committerJustin Clark-Casey (justincc)2011-05-06 21:58:41 +0100
commit9ff94a3a443e7c912ad33c3117b824469e38a130 (patch)
tree20ea119520156bca3ed58ceb31a0eff09c0f842e /OpenSim/Services
parentChange command help text for "show capabilities" to "show caps", as this is t... (diff)
downloadopensim-SC_OLD-9ff94a3a443e7c912ad33c3117b824469e38a130.zip
opensim-SC_OLD-9ff94a3a443e7c912ad33c3117b824469e38a130.tar.gz
opensim-SC_OLD-9ff94a3a443e7c912ad33c3117b824469e38a130.tar.bz2
opensim-SC_OLD-9ff94a3a443e7c912ad33c3117b824469e38a130.tar.xz
Say which filename an asset has been dumped to on a successful dump
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/AssetService/AssetService.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs
index 80d58e1..915596e 100644
--- a/OpenSim/Services/AssetService/AssetService.cs
+++ b/OpenSim/Services/AssetService/AssetService.cs
@@ -223,13 +223,17 @@ namespace OpenSim.Services.AssetService
223 return; 223 return;
224 } 224 }
225 225
226 using (FileStream fs = new FileStream(rawAssetId, FileMode.CreateNew)) 226 string fileName = rawAssetId;
227
228 using (FileStream fs = new FileStream(fileName, FileMode.CreateNew))
227 { 229 {
228 using (BinaryWriter bw = new BinaryWriter(fs)) 230 using (BinaryWriter bw = new BinaryWriter(fs))
229 { 231 {
230 bw.Write(asset.Data); 232 bw.Write(asset.Data);
231 } 233 }
232 } 234 }
235
236 MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName);
233 } 237 }
234 238
235 void HandleShowDigest(string module, string[] args) 239 void HandleShowDigest(string module, string[] args)