Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
API | Operation Description |
Rename or move directory or album |
QCloudSMHRenameDirectoryRequest *req = [QCloudSMHRenameDirectoryRequest new];// Media Library ID, required parameterreq.libraryId = self.userModel.libraryId;// Space ID, if the media library is in single-tenant mode, this parameter is fixed as a hyphen (-); if the media library is in multi-tenant mode, you must specify this parameterreq.spaceId = scopeDir.teamInfo.spaceId;// Directory path or album name, for multi-level directory, use slash (/) to separate, such as foo/barreq.dirPath = name;// Source directory path or album name to be renamed or movedreq.from = cto.object.totalPath;req.conflictStrategy = QCloudSMHConflictStrategyEnumAsk;// Whether to move folder permissions, true to move, false not to move;req.moveAuthority = YES;[req setFinishBlock:^(QCloudSMHRenameResult *result, NSError *_Nullable error) {if (completeHandler) {completeHandler(result, error);}}];[[QCloudSMHService defaultSMHService] renameDirecotry:req];
フィードバック