[REBOL] Re: CASTRO (was: Will this mail arrive?)
From: g:santilli:tiscalinet:it at: 1-Jun-2002 12:43
Hi Ashley,
On Thursday, May 30, 2002, 3:04:15 AM, you wrote:
ahca> You can use 'rename to rename files in the same directory (eg. rename
ahca> %/c/view/a.txt %b.txt), but must do a copy/delete if the rename (actually a
ahca> move) spans directories.
Actually it depends on the platform I think.
>> system/version
== 1.2.1.3.1
>> make-dir %test/
== %test/
>> write %testfile "Test"
>> rename %testfile %test/testfile
>> read %testfile
** Access Error: Cannot open /C/rebol/Script/testfile
** Where: halt-view
** Near: read %testfile
>> read %test/testfile
== "Test"
IIRC I used it successfully on Linux too. Of course, this does not
work if you are moving the file between different disks.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r