Bug 23590

Summary: deleted files instead of copying them
Product: [Applications] konqueror Reporter: sinnfrei
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sinnfrei 2001-04-03 08:22:51 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           KDE 2.1.0 
Severity:          normal
Installed from:    SuSE RPMs
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: SuSE 6.4

I opened two "windows" within konqueror to copy files from one directory to another. By mistake I did not choose _different_ directories but I copied the same files from one directory to the _same_ directory. (This sounds silly but it was _by mistake_ and: hey! it can happen can't it?). Konqueror asked if it should replace all the files and still I did not notice and answered "yes". Instead of replacing the files konqueror deleted ALL existing files in the directory (i.e. the filenames exist but they are EMPTY). I may know the technical reason for this behaviour (konqueror deletes the existing file and then there is nothing left to duplicate ...).

BUT THIS SEEMS TO BE A VERY SEROIUS BUG TO ME. Konqueror should notice that it won't be able to do what I ask it to do esp. when it means that all my files are lost.

(Submitted via bugs.kde.org)
Comment 1 David Faure 2001-04-03 14:51:55 UTC
On Tuesday 03 April 2001 09:22 sinnfrei@gmx.net wrote:
> Package: konqueror
> Version: KDE 2.1.0 
> Severity: normal
> Installed from:    SuSE RPMs
> Compiler:          Not Specified
> OS:                Linux
> OS/Compiler notes: SuSE 6.4
> 
> I opened two "windows" within konqueror to copy files from one directory to another. By mistake I did not choose _different_ directories but I copied the same files from one directory to the _same_ directory. (This sounds silly but it was _by mistake_ and: hey! it can happen can't it?). Konqueror asked if it should replace all the files and still I did not notice and answered "yes". Instead of replacing the files konqueror deleted ALL existing files in the directory (i.e. the filenames exist but they
> are EMPTY). I may know the technical reason for this behaviour (konqueror deletes the existing file and then there is nothing left to duplicate ...).
> 
> BUT THIS SEEMS TO BE A VERY SEROIUS BUG TO ME. Konqueror should notice that it won't be able to do what I ask it to do esp. when it means that all my files are lost.

Oh boy. Never realized that this could happen nor what would happen.
Ok I added a check and an error message (in both branches of CVS).
Thanks much for the report - and apologies for the data loss :(

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://perso.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today