Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Once upon a time

From: patrick::philipot::laposte::net at: 5-Jul-2003 17:01

Hi List, It seems that RENAME fails when the target already exists. AFAIK this *feature* is not documented. I am using View version 1.2.10. This is my simple test.
>> write %myfile.txt "simple test" ; create source file >> rename %myfile.txt %myfile.bak ; OK the first time >> write %myfile.txt "simple test" ; recreate source >> rename %myfile.txt %myfile.bak ; BAD why?
** Access Error: Cannot rename myfile.txt ** Where: throw-on-error ** Near: rename %myfile.txt %myfile.bak
>> delete %myfile.bak ; because target exists ? >> rename %myfile.txt %myfile.bak
Regards Patrick