path argument in drive_upload() not working

I have a presentation saved in Google Drive as README and I want to overwrite that presentation with a local file using the path argument in the hopes that this will preserve the google drive ID for the presentation (and not break the link for my stakeholders). But when I enter the path argument I get an error message:

"Error: Requested parent path is invalid: neither a folder nor a Team Drive."


README <- drive_get('README')

  media = here::here('README.pptx'),
  name = 'README',
  type = 'presentation',
  path = as_id(README), # target destination on drive
  overwrite = TRUE

Omitting the path argument results in the file being overwritten and a new drive ID being assigned.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.