Rebol Programming/dirize

USAGE:

edit
DIRIZE path 

DESCRIPTION:

edit

Returns a copy of the path turned into a directory.

DIRIZE is a function value.

ARGUMENTS

edit
  • path -- (Type: file string url)

SOURCE CODE

edit
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]
]