You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using rdrop2 for doing some file and user management for a shinyapp (at least for the moment). When using drop_delete() while setting the dtoken argument to my token (from an encrypted RDS file), the browser popup with the authorization for rdrop2 on dropbox, which is not the behavior expected given that I passed dtoken to the function. This does not do that when passing dtoken to some other drop_*() functions such as drop_upload().
From my diagnosis on why it does that, it seems that the drop_delete() function uses the drop_exists() function internally but does not pass dtoken to the drop_exists() function when calling it. This leads to get_dropbox_token() being called in all cases in the drop_delete() function ( because of the default parameters of drop_exists() ). This happens in other functions such as drop_create(), drop_copy(), drop_move().
For now, I did my own drop_delete2() function changing drop_exists(path) to drop_exists(path, dtoken = dtoken), but it would be nice if this could be done in a future version of the package, at least if my diagnostic is right.
The text was updated successfully, but these errors were encountered:
I am using rdrop2 for doing some file and user management for a shinyapp (at least for the moment). When using drop_delete() while setting the dtoken argument to my token (from an encrypted RDS file), the browser popup with the authorization for rdrop2 on dropbox, which is not the behavior expected given that I passed dtoken to the function. This does not do that when passing dtoken to some other drop_*() functions such as drop_upload().
From my diagnosis on why it does that, it seems that the drop_delete() function uses the drop_exists() function internally but does not pass dtoken to the drop_exists() function when calling it. This leads to get_dropbox_token() being called in all cases in the drop_delete() function ( because of the default parameters of drop_exists() ). This happens in other functions such as drop_create(), drop_copy(), drop_move().
For now, I did my own drop_delete2() function changing drop_exists(path) to drop_exists(path, dtoken = dtoken), but it would be nice if this could be done in a future version of the package, at least if my diagnostic is right.
The text was updated successfully, but these errors were encountered: