gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] safe advrename


From: Piotr Eljasiak
Subject: Re: [gcmd-dev] safe advrename
Date: Sun, 11 Sep 2011 19:11:35 +0200

> Just to ensure - what exactly is advrename doing when there are already files 
> with the same name ? 
> 
> When you renumber
> 
>       file-01
>       file-02
>       file-03
> 
>       to 
> 
>       file-02
>       file-03
>       file-04
> 
> 
> it will rename only file-03 to file-04. 
> 
> So it appears only those are renamed which are 'possible' w/o overwriting any 
> file. 
> Is that waterproof and solid as rock ;) ?

It tries to rename files - top-bottom order...


> Such a case is almost always an error on the users side so she wants to 
> correct the template. But after such a mis-naming, files which were already 
> in some order often are totally screwed. So what would be done, in the ideal 
> world we don't live in ? The renaming would only be 'simulated' (with those 
> problem cases highlighted in red) and a popup would ask 'Some files can not 
> be renamed. Do you really want to continue ?' and then you can choose 
> 'continue without overwriting any file' (may we make that 'do what is 
> possible' ?) and 'Cancel' ('Lemme try again!!').

gcmd could rename files in reverse way (bottom-top), but that wouldn't
work when renaming 02..04 -> 01..03 (sigh...)

The quick and dirty workaround here is to rename to different filename
(like _file-02 .. _file-04) and then to skip extra char.

Of course - you've got the point - there should be used some heuristics
here, but that would not rather happen before 1.4






reply via email to

[Prev in Thread] Current Thread [Next in Thread]