Wolfram: File Exist
Check File/Dir Existence
(* check file exist *) FileExistsQ["c:/Users/xah/abc.txt"] (* True *) (* works on dir too *) FileExistsQ["c:/Users/xah/"] (* True *)
(* check file exist *) FileExistsQ["c:/Users/xah/abc.txt"] (* True *) (* works on dir too *) FileExistsQ["c:/Users/xah/"] (* True *)