示例#1
0
        private RedistItem Delete(RedistItem item)
        {
            switch (item.ItemType)
            {
            case ItemTypeEnum.Folder:
                item.Deleted = _deleteService.DeleteFolder(item.Path);
                break;

            case ItemTypeEnum.File:
                item.Deleted = _deleteService.DeleteFile(item.Path);
                break;
            }

            return(item);
        }