You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Sukanth's avatar
Sukanth
Explorer | Level 4
5 years ago

is there a way we can resume downloads from where it left ?

Hi Guys, 

I wrote code using dropbox java sdk to download all the files in dropbox to my NAS (Network-attached storage). The data is huge . I tried to make the process faster using thread pool executor. However, when I abruptly close the program or when a fatal error occurus it corrupts the files that were in progress. Is there a way that we can delete the files that were not fully copied at the time of the fatal error? 

below is the draft code .. a lot of improvements can be made to it. 

https://github.com/sukanth/Dropbox

  • Sukanth's avatar
    Sukanth
    Explorer | Level 4

    like the file is not fully downloaded. The output stream is interrupted in the middle and the whole image data is not written into the file because of the interruption. Is there a way that we can keep track of the files that were not fully downloaded and retry them again?

      • Sukanth's avatar
        Sukanth
        Explorer | Level 4

        Partially downloaded file

        when I say partially downloaded. I mean like the one in the above picture .when I stop the program abruptly this happens because the output stream is interrupted before the file is fully written on disk.  Can you suggest anything to handle this case?