OpenMetaverse.InventoryManager.RequestFindObjectByPath C# (CSharp) Method

RequestFindObjectByPath() public method

Find inventory items by path
Results are sent to the InventoryManager.OnFindObjectByPath event
public RequestFindObjectByPath ( UUID baseFolder, UUID inventoryOwner, string path ) : void
baseFolder UUID The folder to begin the search in
inventoryOwner UUID The object owners
path string A string path to search, folders/objects separated by a '/'
return void
        public void RequestFindObjectByPath(UUID baseFolder, UUID inventoryOwner, string path)
        {
            if (path == null || path.Length == 0)
                throw new ArgumentException("Empty path is not supported");

            // Store this search
            InventorySearch search;
            search.Folder = baseFolder;
            search.Owner = inventoryOwner;
            search.Path = path.Split('/');
            search.Level = 0;
            lock (_Searches) _Searches.Add(search);

            // Start the search
            RequestFolderContents(baseFolder, inventoryOwner, true, true, InventorySortOrder.ByName);
        }