Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > File Operations >

FileType

FileType["file"]
gives the type of a file, typically File, Directory, or None.
  • FileType returns None if the file specified does not exist.
$UserBaseDirectory is a directory:
A typical file in the Mathematica program layout:
$UserBaseDirectory is a directory:
In[1]:=
Click for copyable input
Out[1]=
 
A typical file in the Mathematica program layout:
In[1]:=
Click for copyable input
Out[1]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team