예제 #1
0
        /// <summary>
        /// Handle an inventory folder creation request from the client.
        /// </summary>
        /// <param name="remoteClient"></param>
        /// <param name="folderID"></param>
        /// <param name="folderType"></param>
        /// <param name="folderName"></param>
        /// <param name="parentID"></param>
        public void HandleCreateInventoryFolder(IClientAPI remoteClient, UUID folderID, ushort folderType,
                                                string folderName, UUID parentID)
        {
            InventoryFolderBase folder = new InventoryFolderBase(folderID, folderName, remoteClient.AgentId, (short)folderType, parentID, 1);

            if (!InventoryService.AddFolder(folder))
            {
                m_log.WarnFormat(
                    "[AGENT INVENTORY]: Failed to create folder for user {0} {1}",
                    remoteClient.Name, remoteClient.AgentId);
            }
        }