WolframLang: is File or Dir
Check is File or Dir
DirectoryQ["c:/Users/xah/abc.txt"] (* False *) DirectoryQ["c:/Users/xah/"] (* True *)
(* is file *) FileType[ "c:/Users/xah/web/xahlee_info/M/WolframScript.html" ] === File (* is dir *) FileType[ "c:/Users/xah/" ] === Directory (* doesn't exist *) FileType[ "c:/Users/xah/tt" ] === None
WolframLang, Shell Tasks
- WolframScript Tutorial
- WolframLang: File Name Extension
- WolframLang: Shell Tasks
- WolframLang: Navigate Directory
- WolframLang: List Files (Walk Directory)
- WolframLang: File Path Functions
- WolframLang: Delete Dir
- WolframLang: is File or Dir
- WolframLang: File Exist
- WolframLang: Get File Date
- WolframLang: Get File Size
- WolframLang: Print File Content
- WolframLang: Get File Hash
- WolframLang: Read File
- WolframLang: Write File
- WolframLang: Load a Package or File
- WolframLang: Get Environment Variable
- WolframLang: Date Time
- WolframLang: Find/Replace Script