Skip to content
angerangel edited this page Mar 19, 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