This forum has been archived. All content is frozen. Please use KDE Discuss instead.

cache file

Tags: None
(comma "," separated)
Nikolay
Registered Member
Posts
33
Karma
0

cache file

Tue Nov 01, 2005 8:47 pm
In case of downloading a torent with single file - the link file 'cache' is created in the temp dir.
But it is created only if the destination torrent file doesn't exist.
See void SingleFileCache::create();

This is OK, but if this cache file doesn't exist nothig is happened - no error message
or any indication that it is a problem. Instead of this ktorrent show me
that the file is downloading correctly :)

I don't know what does - throw Error(i18n("Cannot open cache file : %1").arg(fptr.errorString()));
but it seems that it's nothing.

It seems that and in case of failure writing nothing happens.
For example if the destination partition is full ktorront will continue
to operate normaly. OK, this is just a guess but the result from
fptr.write is not checked.
George
Moderator
Posts
5421
Karma
1

Wed Nov 02, 2005 8:48 am
I changed that yesterday, we now check the result and an error gets thrown. But it doesn't get caught properly yet, I still have to make it stop the download.

This is OK, but if this cache file doesn't exist nothig is happened - no error message
or any indication that it is a problem. Instead of this ktorrent show me
that the file is downloading correctly Smile


You mean when somebody for example deletes the file the cache symlink is pointing to ?
Nikolay
Registered Member
Posts
33
Karma
0

Wed Nov 02, 2005 9:10 am
You mean when somebody for example deletes the file the cache symlink is pointing to ?


I mean if someone delete the symlink cache file in temp dir or
in general if this file doesn't exist.

Example:
1. I start downloading "torrent_file1.torrent"
this file contain only one file - for example "test_file.rar"
2. I select to save this download in "\downloads\"
3. If "test_file.rar" exists as a file in "\downloads\" ktorrent doesn't
create a symlink. The size of "test_file.rar" is 0
4. As result there is no symlink "cache" file in temp dir.
5. Even there is no symlink in temp dir ktorrent doesn't display an error message or something.
6. The size of "test_file.rar" is still 0, but ktorrent show me that I'm already
downloaded several megabytes.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]