Moving a File

Dave dave at looktowindward.com
Wed Mar 7 05:36:26 EST 2007


On 7 Mar 2007, at 10:12, Mark Smith wrote:

> Well, not to belabour the point (much), but since it's quite clear  
> from the docs that the rename command can move a file to a new  
> location, it seems pretty reasonable to expect that a developer  
> would consider checking for the existence of a similarly named file  
> in the target location and deciding what to do about it before  
> going ahead...

Yes, sort of, but when you consider this comment:

  Caution!  This command can be used to rename or move files and  
folders your stack did not create. Of course, a stack should not  
rename or move files and folders it didn't create without obtaining  
explicit confirmation from the user.

One would think that if they have gone to all the trouble of pointing  
this out, there would also be a warning about files being deleted!  
Especially when you also consider that under the "delete" command, it  
reads:

  Caution!  This command cannot be undone, so be very certain before  
you use it. The delete file command removes the file completely from  
the user's system. It does not place the file in the Trash or Recycle  
Bin.

And this is on the "delete" command where is is *obvious* that a file  
*could* be deleted as apposed to being moved to the trash.

All the Best
Dave







More information about the use-livecode mailing list