From 9ff94a3a443e7c912ad33c3117b824469e38a130 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 6 May 2011 21:58:41 +0100 Subject: Say which filename an asset has been dumped to on a successful dump --- OpenSim/Services/AssetService/AssetService.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Services') 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 return; } - using (FileStream fs = new FileStream(rawAssetId, FileMode.CreateNew)) + string fileName = rawAssetId; + + using (FileStream fs = new FileStream(fileName, FileMode.CreateNew)) { using (BinaryWriter bw = new BinaryWriter(fs)) { bw.Write(asset.Data); } - } + } + + MainConsole.Instance.OutputFormat("Asset dumped to file {0}", fileName); } void HandleShowDigest(string module, string[] args) -- cgit v1.1