* Allow inventory archives to be saved from the 'root' inventory directory
* Reload doesn't currently obey structure information * Not yet ready for use0.6.3-post-fixes
parent
6fbc1f2b23
commit
d03c32aa69
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue