Konqueror delete unification

Koos Vriezen koos.vriezen at xs4all.nl
Mon Jul 14 15:25:19 BST 2003


On Mon, 14 Jul 2003, David Hugh-Jones wrote:

> On Mon, 2003-07-14 at 14:02, Koos Vriezen wrote:
> > On Mon, 14 Jul 2003, David Hugh-Jones wrote:
> >
> > > If you have a large file on another partition, could you not just force
> > > a delete? I don't think we can make the system clever enough to guess
> > > whether to delete a file or trash it (based on size, ioslave, partition
> > > etc.)
> >
> > KURL::isLocalFile() and stat(2) if true.
>
> Yes, it is easy to do that bit. But the problem is:
>
> * some users want to trash only local files
> * some users want to trash only small files
> * some users want to trash local files or small remote files
> * some only small local files
> * [add extra dimensions as required!]
>
> and also:
> * some consider 1.5Gb big, some 150Mb (maybe they have different hard
> drive sizes)
>
> etc. etc. So if you try and do this "intelligently", you will almost
> certainly get it wrong for most people; and you will _certainly_ end up
> being unpredictable. (I hit "delete" - is it going to trash it or delete
> it?)

Well don't do that then! My point is not copying at all, only a mv in the
same partition, nothing intelligent about that (large file was just an
example how annoying it can be if it's copied, compiled/installed source
packages can be even more annoying if you forget about force delete).

Koos




More information about the kfm-devel mailing list