fun getBlobReference()

in azure-storage-common/src/main/kotlin/jetbrains/buildServer/serverSide/artifacts/azure/AzureUtils.kt [66:72]


    fun getBlobReference(parameters: Map<String, String>, path: String): CloudBlockBlob {
        val client = AzureUtils.getBlobClient(parameters)
        val (containerName, blobPath) = getContainerAndPath(path)
                ?: throw IllegalArgumentException("Path should not be empty")
        val container = client.getContainerReference(containerName)
        return container.getBlockBlobReference(blobPath)
    }