FileType

FileType["file"]
gives the type of a file, typically File, Directory, or None.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

$UserBaseDirectory is a directory:

In[1]:=
Click for copyable input
Out[1]=

A typical file in the Wolfram System program layout:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1991
(2.0)
| Updated in 2016
(11.0)