R/source_file.R
get_file_origin.Rd
Return the origin of a file path
get_file_origin(file)
A source_file object or character string
file origin as a character string
fpath <- source_file('some/file/path.txt', origin='onedrive') get_file_origin(fpath) #> [1] "onedrive"