diff options
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/FileAssetClient.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/FileAssetClient.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/FileAssetClient.cs b/OpenSim/Framework/Communications/Cache/FileAssetClient.cs index 5f15c3e..8b8172e 100644 --- a/OpenSim/Framework/Communications/Cache/FileAssetClient.cs +++ b/OpenSim/Framework/Communications/Cache/FileAssetClient.cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
45 | } | 45 | } |
46 | public override void StoreAsset(AssetBase asset) | 46 | public override void StoreAsset(AssetBase asset) |
47 | { | 47 | { |
48 | byte[] idBytes = asset.FullID.Guid.ToByteArray(); | 48 | byte[] idBytes = asset.Metadata.FullID.Guid.ToByteArray(); |
49 | 49 | ||
50 | string cdir = m_dir + Path.DirectorySeparatorChar + idBytes[0] | 50 | string cdir = m_dir + Path.DirectorySeparatorChar + idBytes[0] |
51 | + Path.DirectorySeparatorChar + idBytes[1]; | 51 | + Path.DirectorySeparatorChar + idBytes[1]; |
@@ -56,7 +56,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
56 | if (!Directory.Exists(cdir)) | 56 | if (!Directory.Exists(cdir)) |
57 | Directory.CreateDirectory(cdir); | 57 | Directory.CreateDirectory(cdir); |
58 | 58 | ||
59 | FileStream x = new FileStream(cdir + Path.DirectorySeparatorChar + asset.FullID + ".xml", FileMode.Create); | 59 | FileStream x = new FileStream(cdir + Path.DirectorySeparatorChar + asset.Metadata.FullID + ".xml", FileMode.Create); |
60 | m_xs.Serialize(x, asset); | 60 | m_xs.Serialize(x, asset); |
61 | 61 | ||
62 | x.Flush(); | 62 | x.Flush(); |