rstudio / pins-r

Pin, Discover and Share Resources
https://pins.rstudio.com
Other
301 stars 62 forks source link

Use a dribble to define the upload destination path #780

Closed gorkang closed 10 months ago

gorkang commented 10 months ago

This is a potential fix to #777

Instead of passing a full path to drive_upload, with this pr we first create a dribble with the destination folder, and then use it as a path.

In my computer, it works with a single or multiple files, uploading to the main google drive folder or to folder with a long path.

For example, now this works without any issues:

drive_link = "https://drive.google.com/drive/folders/1_jiG0VtENy5QcLRziN7DM_zQD4egwGuN"
googledrive::drive_auth(email = "myemail@gmail.com")
gdrive_board = pins::board_gdrive(drive_link)
gdrive_board |> pins::pin_upload(paths = "~/Downloads/999.zip", name = "Id_pin")
juliasilge commented 10 months ago

We got the Python problem fixed in https://github.com/rstudio/pins-python/pull/212. 👍

github-actions[bot] commented 9 months ago

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.