aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/FileAssetClient.cs
diff options
context:
space:
mode:
authorMike Mazur2009-02-04 00:01:36 +0000
committerMike Mazur2009-02-04 00:01:36 +0000
commit0c03a48fb2060eda4d288e2d2ca4e650ce000b4b (patch)
treea90465075960c92367b0a5e62db3121e4e3a139d /OpenSim/Framework/Communications/Cache/FileAssetClient.cs
parent* Add another object to the existing save oar test (diff)
downloadopensim-SC-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.zip
opensim-SC-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.gz
opensim-SC-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.bz2
opensim-SC-0c03a48fb2060eda4d288e2d2ca4e650ce000b4b.tar.xz
- add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of it
- trim trailing whitespace
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/FileAssetClient.cs')
-rw-r--r--OpenSim/Framework/Communications/Cache/FileAssetClient.cs4
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();