Bug 94781 - When only files are copied, they are unnecessarily counted before the transfer begins which wastes a lot of time
Summary: When only files are copied, they are unnecessarily counted before the transfe...
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 135539 257911 261262 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-10 04:04 UTC by S. Burmeister
Modified: 2020-05-18 20:40 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2004-12-10 04:04:02 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    SuSE RPMs
OS:                Linux

When I want to copy files from an ftp, a progress-window opens up, counting all files to be copied. I do not know what information is gathered, or what use this has, yet it wastes a lot of time. If I use the console ftp, I simply have to log in, tell it to copy and there it goes, konqueror should do the same.
Comment 1 David Faure 2004-12-10 12:43:07 UTC
What uses this has? Well, to be able to have a progressbar we need to know the total number of files, don't we?
This is more than "counting", it's the actual listing of the files, which is necessary in order to copy them, in any case.
I see no bug here. We simply list everything (recursively) upfront, but any FTP program would have to do that anyway, it's just that you don't see it.
Comment 2 S. Burmeister 2004-12-10 13:33:51 UTC
Do we need the number of files to be copied? Yes, do we have to contact the server for that? No.
When I get on a ftp and select 20 files to be copied to my home-directory, guess what, the number is already known, i.e. 20 files. However, as the counting is 1/5 seconds it seems to me that the server is contacted for each file, as my harddisk certainly is not that slow.
Comment 3 S. Burmeister 2004-12-10 13:39:33 UTC
In case it is only a listing, this is already done when I display that directory in konqueror, i.e. I could not select files if they were not listed. Further, if I use command line ftp, on the same internet connection, same files, same everything, whatever takes place before transfering files takes less than two seconds, so I expect the same in konqueror.
Comment 4 David Faure 2004-12-10 13:51:44 UTC
On Friday 10 December 2004 13:33, S.Burmeister wrote:
> When I get on a ftp and select 20 files to be copied to my home-directory, guess what, the number is already known, i.e. 20 files.
Ah, ok, I thought you were talking about directories - in which case konq doesn't know what's inside yet.

For simple files, yes, we know already. The code doesn't (it only gets a URL), this could be improved indeed.

Comment 5 Bram Schoenmakers 2006-10-13 00:12:07 UTC
*** Bug 135539 has been marked as a duplicate of this bug. ***
Comment 6 Todd 2011-02-08 23:49:41 UTC
*** Bug 257911 has been marked as a duplicate of this bug. ***
Comment 7 Todd 2011-02-08 23:52:31 UTC
This is still a problem, and it causes the system to hang completely when transferring a lot of files
Comment 8 Nate Graham 2018-04-25 19:57:35 UTC
*** Bug 261262 has been marked as a duplicate of this bug. ***
Comment 9 Ahmad Samir 2020-05-18 20:40:53 UTC
Is this still an issue? I tested by copying a lot of files to a usb stick, then attached it as to the usb port on my router, copying files from the ftp:// on the router, seemed to work well.