File type?

angerangel edited this page Jan 3, 2013 · 1 revision

USAGE

   FILE-TYPE? file

DESCRIPTION

Return the identifying word for a specific file type (or NONE).

FILE-TYPE? is a function value.

ARGUMENTS

  • file (file! url!)

#SOURCE

file-type?: make function! [  [
    {Return the identifying word for a specific file type (or NONE).}
    file [file! url!]
][
    if file: find find system/options/file-types suffix? file word! [first file]
] ]
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.