Say which filename an asset has been dumped to on a successful dump

bulletsim
Justin Clark-Casey (justincc) 2011-05-06 21:58:41 +01:00
parent 2ef8e03773
commit 9ff94a3a44
1 changed files with 6 additions and 2 deletions

View File

@ -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)