rdrop2 icon indicating copy to clipboard operation
rdrop2 copied to clipboard

Drop_delete does not find a file just after a drop_download

Open jeremydudek opened this issue 7 years ago • 3 comments

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

jeremydudek avatar Jan 31 '18 18:01 jeremydudek

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 avatar Jan 31 '18 21:01 ClaytonJY

@ClaytonJY

Indeed, FALSE

Regards,

jeremydudek avatar Feb 01 '18 08:02 jeremydudek

@jdudek2017 Thanks for the bug report. Will add this to the queue of TODOs

karthik avatar Feb 02 '18 23:02 karthik