REBOL Programming/dirize

USAGE:Edit

DIRIZE path 

DESCRIPTION:Edit

Returns a copy of the path turned into a directory.

DIRIZE is a function value.

ARGUMENTSEdit

  • path -- (Type: file string url)

SOURCE CODEEdit

dirize: func [
    {Returns a copy of the path turned into a directory.} 
    path [file! string! url!]
][
    either #"/" <> pick path length? path [join path #"/"] [copy path]
]
Last modified on 27 October 2012, at 22:13