FileType

FileType["file"]
returns the type of a file, from File, Directory or None.