Looking at the `uploadDirectory` function <https:/...
# documentation
m
Looking at the
uploadDirectory
function https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-amazon-s3.html In the code example, how does it know what bucket to upload to? In the example it creates the bucket but never refers to it.
Copy code
<cfscript> 
    storageService = getCloudService(application.awsCred,application.s3Conf) 
    // create a bucket 
    createBucketRequest = { 
        "acl":"PRIVATE", 
        "bucket" : "bucket.b.four", 
        "objectLockEnabledForBucket" : true 
    } 
    bucketObj=storageService.createBucket(createBucketRequest) 
    // define request parameters for upload 
    dirUploadReq = { 
        "prefix" : "test_bulk\", 
        "sourceDirectory" : "../files", 
        "uploadNestedDirectory" : true 
    } 
    try{ 
        uploadResponse=storageService.uploadDirectory(dirUploadReq) 
        writeOutput("Directory uploaded successfully") 
        writeDump(uploadResponse) 
    } 
    catch(any e){ 
        writeDump(e) 
    } 
  </cfscript>