Bug 81219

Summary: files with same names are not saved (duplicate files) causing trouble
Product: [Applications] kget Reporter: Mohd Asif Ali Rizwaan <maarizwan>
Component: generalAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: wishlist CC: mat69
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mohd Asif Ali Rizwaan 2004-05-09 23:12:58 UTC
Version:           v0.8.4 (using KDE 3.2.1, compiled sources)
Compiler:          gcc version 3.2.3
OS:          Linux (i686) release 2.4.25

How to reproduce:

Expectation:
2 pages www.kde.org and dot.kde.org, are having say 3 jpg files 01.jpg 02.jpg 03.jpg (each page contains 3 jpg files)

now If we download using "list all links" the selected files will get appended to download list. now the first three files 01.jpg 02.jpg and 03.jpg from www.kde.org will get downloaded.

now, the kget download list also contains 01.jpg 02.jpg and 03.jpg from dot.kde.org. here file-name conflict will arise. 

currently kget will only respond with "file already exist" message which is inelegant and not caring for user. and hence the 3 files from dot.kde.org are not getting downloaded which we intend to download.

so, I suggest: auto renaming of target file with some extra parameters (text) for easier identification

1. if 2 files conflict use '(number)' like 01(02).jpg 02(02).jpg and 03(02).jpg. which means duplicate of file name 01 02 and 03. 

(or)

2. the files from dot.kde.org should get saved as:

01-dot.kde.org.jpg
02-dot.kde.org.jpg
03-dot.kde.org.jpg

or something distinguishing the duplicate files, so that we are not bothered with file name conflicts. thanks.
Comment 1 Lukas Appelhans 2007-12-16 20:41:26 UTC
It currently opens a "Rename"-Dialog in KDE4-trunk. The autorenaming is a wishlist^^

Lukas
Comment 2 Matthias Fuchs 2011-02-05 02:14:14 UTC
Autorenaming is implemented in 4.6, it works the same way as trying to overwrite existing files in Dolphin.