FileType

FileType["file"]

gives the type of a file, typically File, Directory, or None.

Details

Examples

open allclose all

Basic Examples  (2)

$UserBaseDirectory is a directory:

A typical file in the Wolfram System program layout:

Scope  (1)

Find the type of the file specified by the File object:

Wolfram Research (1991), FileType, Wolfram Language function, https://reference.wolfram.com/language/ref/FileType.html (updated 2016).

Text

Wolfram Research (1991), FileType, Wolfram Language function, https://reference.wolfram.com/language/ref/FileType.html (updated 2016).

BibTeX

@misc{reference.wolfram_2021_filetype, author="Wolfram Research", title="{FileType}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileType.html}", note=[Accessed: 24-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_filetype, organization={Wolfram Research}, title={FileType}, year={2016}, url={https://reference.wolfram.com/language/ref/FileType.html}, note=[Accessed: 24-September-2021 ]}

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