FileExistsQ
FileExistsQ["name"]
更多信息
- 在 FileExistsQ["name"] 中,name 相对于您的当前目录进行解释.
- FileExistsQ 不搜索 $Path.
- FileExistsQ 测试文件、目录或其它文件系统对象.
- FileExistsQ 也适用于云对象.
- 系统也支持 FileExistsQ[File["file"]].
参见
FindFile AbsoluteFileName DirectoryQ Put File CloudObject
Function Repository: ObjectExistsQ EnsureFilePath ObjectIfExists
文本
Wolfram Research (2008),FileExistsQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/FileExistsQ.html (更新于 2016 年).
CMS
Wolfram 语言. 2008. "FileExistsQ." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2016. https://reference.wolfram.com/language/ref/FileExistsQ.html.
APA
Wolfram 语言. (2008). FileExistsQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/FileExistsQ.html 年
BibTeX
@misc{reference.wolfram_2025_fileexistsq, author="Wolfram Research", title="{FileExistsQ}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/FileExistsQ.html}", note=[Accessed: 13-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_fileexistsq, organization={Wolfram Research}, title={FileExistsQ}, year={2016}, url={https://reference.wolfram.com/language/ref/FileExistsQ.html}, note=[Accessed: 13-April-2026]}