I would like to read csv file from Azure blob storage with python Azure function. Using the code below, I get the error:
[Errno 30] Read-only file system: '/home/site/wwwroot/my_csv_file'
And the code snippet is:
work_directory= os.getcwd()
filename = my_csv_file
account_name = <blob_storage>
account_key = <blob_key>
os.chmod(work_directory, 0o777)
input_fpath=os.path.join(work_directory, filename)
block_blob_service = BlockBlobService(account_name, account_key)
block_blob_service.get_blob_to_path(container_name=<input_container_name>, blob_name=filename,
file_path=input_fpath)
How could I change permissions or how I can read csv to python in other way?