Relabeling all audio files on a server

Bill Davidsen davidsen at tmr.com
Wed Jun 2 18:13:26 UTC 2010


Tim wrote:
> On Mon, 2010-05-31 at 13:27 -0400, Bill Davidsen wrote:
>> 1 - any mass rename opens you to disaster
> 
> One fly in the ointment might be renaming one file to the same name as
> an already existing file.
> 
Here there be tigers ;-)

I did pull out the directory name to prevent renaming that, and additional 
checks could be added to prevent the unlikely duplicate name. In general 
operations of this type are not safe, people do them because they are 
convenient. ;-)

-- 
Bill Davidsen <davidsen at tmr.com>
   "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot


More information about the users mailing list