* Allow inventory archives to be saved from the 'root' inventory directory

* Reload doesn't currently obey structure information
* Not yet ready for use
0.6.3-post-fixes
Justin Clarke Casey 2009-02-17 18:46:42 +00:00
parent 6fbc1f2b23
commit d03c32aa69
1 changed files with 10 additions and 3 deletions

View File

@ -307,7 +307,8 @@ namespace OpenSim.Framework.Communications.Cache
} }
/// <summary> /// <summary>
/// Find a folder given a PATH_DELIMITOR delimited path starting from this folder /// Find a folder given a PATH_DELIMITER delimited path starting from this folder
/// </summary>
/// ///
/// This method does not handle paths that contain multiple delimitors /// This method does not handle paths that contain multiple delimitors
/// ///
@ -315,15 +316,21 @@ namespace OpenSim.Framework.Communications.Cache
/// XPath like expression /// XPath like expression
/// ///
/// FIXME: Delimitors which occur in names themselves are not currently escapable. /// FIXME: Delimitors which occur in names themselves are not currently escapable.
/// </summary> ///
/// <param name="path"> /// <param name="path">
/// The path to the required folder. It this is empty then this folder itself is returned. /// The path to the required folder.
/// It this is empty or consists only of the PATH_DELIMTER then this folder itself is returned.
/// </param> /// </param>
/// <returns>null if the folder is not found</returns> /// <returns>null if the folder is not found</returns>
public InventoryFolderImpl FindFolderByPath(string path) public InventoryFolderImpl FindFolderByPath(string path)
{ {
if (path == string.Empty) if (path == string.Empty)
return this; return this;
path = path.Trim();
if (path == PATH_DELIMITER)
return this;
string[] components = path.Split(new string[] { PATH_DELIMITER }, 2, StringSplitOptions.None); string[] components = path.Split(new string[] { PATH_DELIMITER }, 2, StringSplitOptions.None);