[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: bug in moving/overwriting a FOLDER
From:       David Faure <faure () kde ! org>
Date:       2004-11-19 10:16:47
Message-ID: 200411191116.48414.faure () kde ! org
[Download RAW message or body]

On Friday 19 November 2004 11:02, Christoph Wiesen wrote:
> Am Friday, 19. November 2004 10:43 schrieb David Faure:
> > This discussion is amazing.
> > You want to let the user overwrite a folder (full of subfolders and files)
> > with one new empty folder (or even one file) ?
> > How can you make KDE more dangerous than that?
> > By pressing the wrong button, the user would lose an entire tree of
> > folders? No thanks.
> Oh no, there's a misunderstanding here. What should happen is that the folder 
> that gets "overwritten" (wrong word actually) will contain BOTH the files 
> that have been there before and the files that came from the overwriting, 
> That's the way it always worked for me in KDE, and it would be a real problem 
> if that for some reason stopped working

Ah, that kind of overwriting. Yes, of course.
(BTW does someone know how Windows, or Mac, or Nautilus calls that operation?)

Hmm, in fact calling it overwrite isn't too wrong: yes it's a kind of merging, but it will
ALSO overwrite any existing file with the same name, in there.
If you copy (or move) A/ into B/ and both A/file1 and B/A/file1 exist, then choosing
to "overwrite B/A with A" will indeed overwrite B/A/file1 with A/file1....
So it's a "merge and overwrite"...

So OK, we could offer overwrite, and then go to the "copy all source files one by one, 
then delete them" code. Remembering that we chose to overwrite the contents of the dir...
I'll give that a try.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic