FileType

FileType["file"]

gives the type of a file, typically File, Directory, or None.

Details

Examples

open allclose all

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]=

Scope  (1)

See Also

DirectoryQ  FileExtension  FileFormat  FileExistsQ  FileNames  FileDate  FileSize  FileByteCount  FileHash

Tutorials

Introduced in 1991
(2.0)
| Updated in 2016
(11.0)