WLJS LogoWLJS Notebook

FileType

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

Examples

Check the type of a file:

FileType["/path/to/file.txt"]
(* File *)

Check a directory:

FileType["/path/to/folder"]
(* Directory *)

Please visit the official Wolfram Language Reference for more details.

On this page