DocumentationMathematicaBuilt-in FunctionsSystem InterfaceFile System
FileType
FileType["file"] gives the type of a file, typically File, Directory or None.
FileType returns None if the file specified does not exist. See Section 2.12.6. See also: FileNames, FileByteCount. New in Version 2.