cosmotech.coal.azure.storage¶
storage
¶
Azure Storage operations module.
This module provides functions for interacting with Azure Storage, including uploading files to blob storage.
upload_file(file_path, blob_name, az_storage_sas_url, file_prefix='')
¶
Upload a single file to Azure Blob Storage.
Args: file_path: Path to the file to upload blob_name: Name of the blob container az_storage_sas_url: SAS URL for the Azure Storage account file_prefix: Prefix to add to the file name in the blob
Source code in cosmotech/coal/azure/storage.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
upload_folder(source_folder, blob_name, az_storage_sas_url, file_prefix='', recursive=False)
¶
Upload files from a folder to Azure Blob Storage.
Args: source_folder: Path to the folder containing files to upload blob_name: Name of the blob container az_storage_sas_url: SAS URL for the Azure Storage account file_prefix: Prefix to add to the file names in the blob recursive: Whether to recursively upload files from subdirectories
Source code in cosmotech/coal/azure/storage.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|