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

[REBOL] Re: Auto-Converting Rebol filepaths to localOS formats

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 ? > 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"
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