Codes for azure fileshare integration with Python
pip3 install -r requirements.txt
- Listing all the files
- Download files from the fileshare directory
- Upload files to the filshare directory
- Azure Storage account name
- Azure Storage account key
- Fileshare name
- Fileshare directory names
Steps
- Add the credentials between the "" in the main method of the code.
- Under the Caling functions, there is a function call with obj.List_directory(). This functions lists all the files in the 'location: "fileshare_name/fileshare_directory_name_list"
Steps
- Add the credentials between the "" in the main method of the code.
- In the local_download_directory="", specify the local location within the "" as the location of files to be downloaded.
- Under the Caling functions, there is a function call with obj.Download(). This functions downloads all the files in the 'location: "fileshare_name/fileshare_directory_name_download"
Steps
- Add the credentials between the "" in the main method of the code.
- In the local_upload_directory="", specify the local location within the "" as the location of files to be uploaded.
- Under the Caling functions, there is a function call with obj.Download(). This functions downloads all the files in the 'location: "fileshare_name/fileshare_directory_name_upload"