Onedrive¶
flowtask.interfaces.OneDrive
¶
OneDriveClient
¶
Bases: O365Client
OneDrive Client.
Interface for Managing connections to OneDrive resources.
Methods:
| Name | Description |
|---|---|
file_list |
Lists files in a specified OneDrive folder. |
file_search |
Searches for files matching a query. |
file_download |
Downloads a single file by its item ID. |
download_files |
Downloads multiple files provided as a list of dictionaries containing file info. |
folder_download |
Downloads a folder and its contents recursively. |
file_delete |
Deletes a file or folder by its item ID. |
upload_files |
Uploads multiple files to a specified OneDrive folder. |
upload_file |
Uploads a single file to OneDrive. |
upload_folder |
Uploads a local folder and its contents to OneDrive recursively. |
download_excel_file
async
¶
Download an Excel file from OneDrive by item ID.
If as_pandas is True, return as a pandas DataFrame.
If as_pandas is False, save to the destination path.
download_files
async
¶
Download multiple files from OneDrive.
file_search
async
¶
Search for files in OneDrive matching the search query.
folder_download
async
¶
Download a folder and its contents from OneDrive.
upload_dataframe_as_excel
async
¶
Upload a pandas DataFrame as an Excel file to OneDrive.
upload_file
async
¶
Upload a single file to OneDrive.
upload_files
async
¶
Upload multiple files to OneDrive.
upload_folder
async
¶
Upload a local folder and its contents to OneDrive.