FileType
Examples
open all close allBasic Examples (2)
$UserBaseDirectory is a directory:
FileType[$UserBaseDirectory]A typical file in the Wolfram System program layout:
FileType[FileNameJoin[{$InstallationDirectory, "Documentation", $Language, "PacletDB.m"}]]Scope (4)
Find the type of the file specified by the File object:
filename = CreateDirectory[];FileType[File[filename]]obj = CloudPut[10!]Check that the file type is File:
FileType[obj]Create a new directory in the Wolfram Cloud:
dir = CreateDirectory[ CloudObject[]]Check that the file type is Directory:
FileType[dir]CloudObject only creates a reference to a new anonymous cloud object, so its file type is None:
FileType[CloudObject[]]Tech Notes
Related Guides
History
Introduced in 1991 (2.0) | Updated in 2016 (11.0)
Text
Wolfram Research (1991), FileType, Wolfram Language function, https://reference.wolfram.com/language/ref/FileType.html (updated 2016).
CMS
Wolfram Language. 1991. "FileType." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/FileType.html.
APA
Wolfram Language. (1991). FileType. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FileType.html
BibTeX
@misc{reference.wolfram_2026_filetype, author="Wolfram Research", title="{FileType}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileType.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_filetype, organization={Wolfram Research}, title={FileType}, year={2016}, url={https://reference.wolfram.com/language/ref/FileType.html}, note=[Accessed: 12-June-2026]}