Product Overview
Feature Description
Product Strengths
Use Cases
Basic Concept
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()}
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan