Page 1 of 1

Duplicated copy of files

PostPosted: Fri Feb 17, 2017 12:10 pm
by genetix
Hmm, first of uGet is probably best damn downloader I've seen for a while, no spam or other crap and works almost flawless.

Few things:

"Bug" A. Duplicates:

- For some reason files are being duplicated when multiple connections are used to get the file at download properties. Program returns:

filename.ext
filename.ext.0
filename.ext.1
filename.ext.0.0

in worst cases.. all 4 files match MD5 and seems to be identical while there is no identical name downloads which would explain above. It's kinda nasty when for example I use uGet to download anything between 2-20GB files in 20GB case that will take 80GB, heh.

Feature:

- DHT network, if torrent, properties and trackers.
- At least a files inside (to exclude some of torrent content) would be nice.

Re: Duplicated copy of files

PostPosted: Wed Feb 22, 2017 3:33 pm
by chhuang
If you download filename.ext, uGet will...
1. check exist filename.ext and filename.ext.aria2 in disc.
2 if you have filename.ext but filename.ext.aria2 not found, create filename.ext.0
3 if file size is difference between remote file and local file, create filename.ext.0

if filename.ext.0 exists, uGet may create filename.ext.0.0 in above case.

Re: Duplicated copy of files

PostPosted: Tue Mar 07, 2017 5:25 am
by genetix
chhuang wrote:If you download filename.ext, uGet will...
1. check exist filename.ext and filename.ext.aria2 in disc.
2. if you have filename.ext but filename.ext.aria2 not found , create filename.ext.0
3. if size of filename.ext is different from remote filename.ext, create filename.ext.0

if filename.ext.0 exists, uGet may create filename.ext.0.0 in above case.


That's a really interesting style of handing "if exists". I mean I code some and usually when something exists it's renamed, overrided, appended or deleted. What I mean is:

1. if exist 'filename.ext' -> dialog append/override/cancel
2. if "filename.ext"-LOCKED -> skip -> notify -> cancel

Of cource I don't understand the ".aria2"-concept should read about it a bit I suppose, but I'm guessing it's some sort of sparse file. So, why would uGet ever write to "filename.ext"-original filename, if temporary file is created as ".aria2", if exists ".aria2.0" with dialog 1. above ?

Re: Duplicated copy of files

PostPosted: Mon Mar 13, 2017 8:34 pm
by chhuang
Program use aria2 control file (.aria2) to resume download.
https://aria2.github.io/manual/en/html/technical-notes.html

When download completed, program will delete .aria2 file.