Skip to content

Onedrive

flowtask.interfaces.OneDrive

OneDriveClient

OneDriveClient(*args, **kwargs)

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_excel_file(item_id, destination=None, as_pandas=False)

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_files(items, destination_folder)

Download multiple files from OneDrive.

file_delete async

file_delete(item_id)

Delete a file or folder in OneDrive by item ID.

file_download async

file_download(item_id, destination)

Download a file from OneDrive by item ID.

file_list async

file_list(folder_path=None)

List files in a given OneDrive folder.

file_search(search_query)

Search for files in OneDrive matching the search query.

folder_download async

folder_download(folder_id, destination_folder)

Download a folder and its contents from OneDrive.

upload_dataframe_as_excel async

upload_dataframe_as_excel(df, file_name, destination_folder=None)

Upload a pandas DataFrame as an Excel file to OneDrive.

upload_file async

upload_file(file_path, destination_folder=None)

Upload a single file to OneDrive.

upload_files async

upload_files(files, destination_folder=None)

Upload multiple files to OneDrive.

upload_folder async

upload_folder(local_folder, destination_folder=None)

Upload a local folder and its contents to OneDrive.