Is there a way to upload directory from local path to Blob Storage using BlobServiceClient?

Su Li 21 Reputation points
2020-08-13T21:31:29.683+00:00

I am looking for a way to upload a local folder to Blob Storage using Python. Local folder is non-empty with CSV output files under that directory. I know that it could be done using BlockBlobService here but I am looking at V12 SDK for Python.

Thanks for the help.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,920 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,416 Reputation points Microsoft Employee
    2020-08-13T22:48:00.267+00:00

    @Su Li
    There are several samples available inside GitHub which you might find helpful. I believe the blob_samples_directory_interface.py has what you are looking for with upload_dir.

    Hope this helps! If not please let us know and we will look into this further for you.

    -------------

    Please don’t forget to "Accept the answer" and "up-vote" wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Su Li 21 Reputation points
    2020-08-14T14:49:25.933+00:00

    @deherman-MSFT

    Thanks for your time and response. This confirms that I am on the right path. I was actually looking into the Git yesterday and thanks again for pointing out the correct sample script. I am closing the issue now.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.