API | Operation Description |
Batch Copy Directories or Files |
try {//Files or folders to be copied in batchval items: List<BatchCopyItem> = listOf(BatchCopyItem(//Source directory, album, or file path to be copied"fromPath",//Target directory, album, or file path"toPath",//Handling method when filename conflictConflictStrategy.RENAME),BatchCopyItem("fromPath", "toPath", ConflictStrategy.RENAME))//Return batch operation result//If it is synchronously returned: just obtain the result content directly from batchResponse.result//If it is asynchronously returned: need to call the Query Task API to get the result content (generally poll the query job until the task result is queried)val batchResponse: BatchResponse = smh.batchCopy(items = items)} catch (e: Exception) {e.printStackTrace()}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback