mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
20 lines
468 B
Python
20 lines
468 B
Python
import os
|
|
|
|
from utils.sharepoint.domna_sharepoint_client import DomnaSharepointClient
|
|
|
|
|
|
def upload_file_to_sharepoint(
|
|
client: DomnaSharepointClient,
|
|
file_path: str,
|
|
base_path: str,
|
|
subpath: str,
|
|
) -> None:
|
|
filename = os.path.basename(file_path)
|
|
|
|
full_path = f"{base_path}/{subpath}/1. Retrofit Assessment/A. Assessment"
|
|
|
|
client.upload_file(
|
|
file_path=file_path,
|
|
sharepoint_path=full_path,
|
|
file_name=filename,
|
|
)
|