Search code examples
azureazure-storageazure-files

Is there a way to move files in azure file storage using only the rest APIs or python APIs


I was looking through the azure file service apis for python and for rest but I didn't see a method to just move files. I would like to move files on azure file storage without mounting a network drive is there a way to do this?


Solution

  • As I know, your requirement couldn't be implemented directly. However you could use the combination of copy and delete API.

    These are copy and delete API of REST.And this part is about copy and delete API of python.And an Azure Storage File is an SMB-compatible share, so you should be able to make files copies with normal file I/O operations.You could refer to this answer.

    If this couldn't meet your requirement or still have questions, please let me know.