locked
Renaming files in blobs storage RRS feed

  • Question

  • Hi,

    I want to rename files in blobs storage which are inside the container. I can't find any demo code. Please help

    Regards,

    Nitin

    Wednesday, January 15, 2014 1:15 PM

Answers

  • Please note that rename operation is not natively supported in blob storage. So in order to rename blobs, you would need to perform 2 operations - Copy & Delete.

    So what you will do is copy the blob to a new name. Because copy operation is async, you must wait for the copy operation to finish. Once copy operation is completed successfully, you would then delete the blob.

    Hope this helps.

    Wednesday, January 15, 2014 1:52 PM

All replies

  • Please note that rename operation is not natively supported in blob storage. So in order to rename blobs, you would need to perform 2 operations - Copy & Delete.

    So what you will do is copy the blob to a new name. Because copy operation is async, you must wait for the copy operation to finish. Once copy operation is completed successfully, you would then delete the blob.

    Hope this helps.

    Wednesday, January 15, 2014 1:52 PM
  • Hello Nitin,

    do you have a solution for the rename files in blobs storage?

    thanks 

    Thursday, May 7, 2015 5:28 PM