Dirize

angerangel edited this page Jan 3, 2013 · 1 revision
Clone this wiki locally

Table of Contents

USAGE

  DIRIZE path

DESCRIPTION

Returns a copy (always) of the path as a directory (ending slash). DIRIZE is a function value.

ARGUMENTS

  • path (file! string! url!)

SOURCE

dirize: make function! [  [
    {Returns a copy (always) of the path as a directory (ending slash).}
    path [file! string! url!]
][
    path: copy path
    if slash <> last path [append path slash]
    path
] ]