Suffix?

angerangel edited this page Jan 7, 2013 · 1 revision

USAGE

   SUFFIX? path

DESCRIPTION

Return the file suffix of a filename or url. Else, NONE.

SUFFIX? is a function value.

ARGUMENTS

  • path (file! url! string!)

#SOURCE

suffix?: make function! [  [
    {Return the file suffix of a filename or url. Else, NONE.}
    path [file! url! string!]
][
    if all [
        path: find/last path #"."
        not find path #"/"
    ] [to file! 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.