drive_retrievers: Get OneDrive of SharePoint Drive Object

Description Usage Arguments Value Examples

Description

Both SharePoint and OneDrive have the same methods, so this can be abstracted down to getting the drive object necessary to interface with the file. This function uses the file path object to determine which drive object should be returned

Usage

1

Arguments

file

File Path as a sharepoint_file or onedrive_file

...

Reserved for potential future use

Value

ms_drive object

Examples

1
2
3
4
5
## Not run: 
sp_file <- sharepoint_file('/some/sharepoint/file.txt')
get_drive(sp_file)

## End(Not run)

atorus-research/m365filer documentation built on Jan. 20, 2022, 12:04 a.m.