forked from rebol/rebol
To rebol file
angerangel edited this page Mar 20, 2013
·
1 revision
TO-REBOL-FILE path
Converts a local system file path to a REBOL file path.
TO-REBOL-FILE is a native value.
- path (file! string!)
#SOURCE
to-rebol-file: make native! [ [
{Converts a local system file path to a REBOL file path.}
path [file! string!]
] ]
It's very useful to change working directory, look:
>> change-dir to-rebol-file "C:\Documents and Settings\max\Desktop\rebf"
>> pwd
== %/C/Documents%20and%20Settings/max/Desktop/rebf/