FileType

FileType["file"]

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

Details

Examples

open all close 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)

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