Auto-Converting Rebol filepaths to localOS formats
[1/5] from: jason::cunliffe::verizon::net at: 16-Oct-2002 0:03
Is there a snappy default way to convert Rebol style filepaths into Windows, or
whatever the local systems filepath format is ?
Seems like we are missing a single built-in function called "to-localOS"
or even a /localOS refinement of current file and path functions
>> to-localOS %/e/JASONIC/Page1.swf
== "E:\JASONIC\Page1.swf"
etc..
thanks
./Jason
[2/5] from: carl:cybercraft at: 16-Oct-2002 18:37
On 16-Oct-02, Jason Cunliffe wrote:
> Is there a snappy default way to convert Rebol style filepaths into
> Windows, or whatever the local systems filepath format is ?
<<quoted lines omitted: 3>>
>>> to-localOS %/e/JASONIC/Page1.swf
> == "E:\JASONIC\Page1.swf"
You were almost there Jason. The words are...
>> to-local-file %/root/dir/file.txt
== %root:dir/file.txt
and...
>> to-rebol-file "root:dir/file.txt"
== %/root/dir/file.txt
--
Carl Read
[3/5] from: rebol:optushome:au at: 16-Oct-2002 20:12
REBOL/View 1.2.1.3.1 21-Jun-2001
>> to-local-file what-dir
== %c:\rebol\view
>> to-rebol-file "c:\rebol\view"
== %/c/rebol/view
Cheers,
Allen K
[4/5] from: g:santilli:tiscalinet:it at: 16-Oct-2002 13:19
Hi Jason,
On Wednesday, October 16, 2002, 6:03:15 AM, you wrote:
>>> to-localOS %/e/JASONIC/Page1.swf
>> to-local-file %/e/JASONIC/Page1.swf
== %e:\JASONIC\Page1.swf
>> to-rebol-file "e:\JASONIC\Page1.swf"
== %/e/JASONIC/Page1.swf
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[5/5] from: jason:cunliffe:verizon at: 16-Oct-2002 11:51
>> to-local-file %/e/JASONIC/Page1.swf
> == %e:\JASONIC\Page1.swf
doh! thanks all. Rebol is so nice so often
How could I have I missed that one ? ..it must've been very late
./Jason
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted