REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: dirize

dirize  path

Returns a copy of the path turned into a directory.


path [file! string! url!]


Convert a file name to a directory name.

For example:

probe dirize %dir

It is useful in cases where paths are used:

dir: %files/examples
new-dir: dirize dir/new-code
probe new-dir

This is useful because the PATH notation does not allow you to write:

new-dir: dirize dir/new-code/

  TOC < Back Next > - WIP Wiki Feedback Admin