Undirize

angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   UNDIRIZE path

DESCRIPTION

Returns a copy of the path with any trailing "/" removed.

UNDIRIZE is a function value.

ARGUMENTS

  • path (file! string! url!)

#SOURCE

undirize: make function! [  [
    {Returns a copy of the path with any trailing "/" removed.}
    path [file! string! url!]
][
    path: copy path
    if #"/" = last path [clear back tail path]
    path
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.