< Rebol Programming

USAGE:

DIRIZE path 

DESCRIPTION:

Returns a copy of the path turned into a directory.

DIRIZE is a function value.

ARGUMENTS

  • path -- (Type: file string url)

SOURCE CODE

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]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.