rdrop2
rdrop2 copied to clipboard
Drop_delete does not find a file just after a drop_download
Dear all,
I would like to delete a file after having downloaded it. But drop_delete is telling me this is not possible.
drop_download(path = temp$path_display[i], overwrite = T, dtoken = token)
load(temp$name[i])
drop_upload(file = temp$name[i], path = "1.6_module3poches/Sauvegarde", dtoken = token)
drop_delete(temp$path_display[i], dtoken = token)
I obtain this kind of message :
Warning: Error in drop_delete: File not found on current path
Stack trace (innermost first):
57: drop_delete
56: observerFunc [ ... server.R#30]
1: shiny::runApp
ERROR: [on_request_read] connection reset by peer
Regards
My hunch is this might have to do whether the leading slash is present or not; I don't think we're quite as consistent about path sanitization as we intend to be. Regardless, the failure could be a bit more elegant.
@jdudek2017 what does drop_exists(temp$path_display[i])
return?
@ClaytonJY
Indeed, FALSE
Regards,
@jdudek2017 Thanks for the bug report. Will add this to the queue of TODOs