[REBOL] Re: CASTRO (was: Will this mail arrive?)
From: atruter:hih:au at: 3-Jun-2002 9:35
<SNIP>
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.
</SNIP>
Hey, you're write. Behaves this way on Win95 as well. I think I have always
misread the help on this:
USAGE:
RENAME old new
DESCRIPTION:
Renames a file to a new name.
RENAME is a function value.
ARGUMENTS:
old -- path to the old file (Type: file url)
new -- new name (not a path) (Type: file url string)
(SPECIAL ATTRIBUTES)
catch
as "new - new name (not containing a path)" . . . instead of, "new - new name (not a
path by itself)" . . .
Thanx for clearing up my confusion.
Regards,
Ashley