PRDownloader icon indicating copy to clipboard operation
PRDownloader copied to clipboard

throw new IOException("Rename Failed");

Open pasqualinigustavo opened this issue 4 years ago • 4 comments

I'm making download of a file. Using the database of PRDownloader (enable true).

When lib try to rename the file(Utils.java line 64) throws an Exception.

If I disable the database of PRDownloader I don't have this error.

Can you help me? Is there any way to solve this by my side?

PS: I saw that sometimes I receive a SQLException PK violation of PRDownload.id of the download... I don't know if we have some relationship between the errors.

pasqualinigustavo avatar May 13 '20 15:05 pasqualinigustavo

@pasqualinigustavo Hi! In my case, it happened when a file in a path where you want to download already exists.

HreshchyshynT avatar Aug 27 '20 12:08 HreshchyshynT

In my case path not exist but same issue raised!

onError called localpath : 319e57b8-afce-4dcc-a524-128279235304/1828/ILjFbc6rsasIW8CCgM.gif {"connectionException":{"detailMessage":"Rename Failed","stackTrace":[],"suppressedExceptions":[]},"isConnectionError":true,"isServerError":false,"responseCode":0}

image

sathishmscict avatar Oct 13 '20 11:10 sathishmscict

It should check before downloading. If file exists, it should return or it should delete and then try to download the new file.

swatibajaj avatar Dec 14 '20 16:12 swatibajaj

I am also getting java.io.IOException: java.util.zip.DataFormatException: invalid stored block lengths and java.io.IOException: Rename Failed .when i will list files from internal storage it also consider(count) 71435_1610972260.mp4.temp temp file.Any Solution for how to check for existing files?

psandroiddev avatar Jun 08 '21 14:06 psandroiddev