file_exists Checks whether a file or directory exists Description boolfile_exists stringfilename Returns &true; if the file or directory specified by filename exists; &false; otherwise. ¬e.clearstatcache; ¬e.no-remote; Using Windows shares On windows, use //computername/share/filename or \\\\computername\share\filename to check files on network shares. Testing whether a file exists ]]> See also is_readable, is_writable, is_file and file.