Microsoft Azure: How to create sub directory in a blob container

前端 未结 9 1705
清酒与你
清酒与你 2020-11-27 16:01

How to create a sub directory in a blob container

for example,

in my blob container http://veda.blob.core.windows.net/document/

If I store some files it

相关标签:
9条回答
  • 2020-11-27 16:37

    If you use Microsoft Azure Storage Explorer, there is a "New Folder" button that allows you to create a folder in a container. This is actually a virtual folder:

    0 讨论(0)
  • 2020-11-27 16:37

    Here's how i do it in CoffeeScript on Node.JS:

    blobService.createBlockBlobFromText 'containerName', (path + '$$$.$$$'), '', (err, result)->
        if err
            console.log 'failed to create path', err
        else
            console.log 'created path', path, result
    
    0 讨论(0)
  • 2020-11-27 16:41

    Got similar issue while trying Azure Sample first-serverless-app.
    Here is the info of how i resolved by removing \ at front of $web.

    Note: $web container was created automatically while enable static website. Never seen $root container anywhere.

    //getting Invalid URI error while following tutorial as-is
    az storage blob upload-batch -s . -d \$web --account-name firststgaccount01
    
    //Remove "\" @destination param
    az storage blob upload-batch -s . -d $web --account-name firststgaccount01
    
    0 讨论(0)
提交回复
热议问题