WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

FileType ["file"]

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

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
See Also
Tech Notes
Related Guides
History
Cite this Page

FileType ["file"]

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

Details

Examples

open all close all

Basic Examples  (2)

$UserBaseDirectory is a directory:

A typical file in the Wolfram System program layout:

Scope  (4)

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

Create a new cloud object:

Check that the file type is File :

Create a new directory in the Wolfram Cloud:

Check that the file type is Directory :

CloudObject only creates a reference to a new anonymous cloud object, so its file type is None :

History

Introduced in 1991 (2.0) | Updated in 2016 (11.0)

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).

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_2025_filetype, author="Wolfram Research", title="{FileType}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileType.html}", note=[Accessed: 17-November-2025]}

BibLaTeX

@online{reference.wolfram_2025_filetype, organization={Wolfram Research}, title={FileType}, year={2016}, url={https://reference.wolfram.com/language/ref/FileType.html}, note=[Accessed: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /