Table of Contents

# $EPIC: fexist.txt,v 1.4 2008/05/28 19:46:15 jnelson Exp $

Synopsis:

$fexist(<file>)
$fexist("" <file>)

Technical:

Practical:

This function is used when you want to see if a particular file exists. This could be useful to make sure a file is present before trying to load it. This function does not return 0!

Returns:

-1   file does not exist or is not readable by you.
 1   file exists and you can read it.

Examples:

$fexist(/etc/passwd)                   probably will return 1
$fexist(~/.ircrc)                      probably will return 1 too
$fexist(fake_file)                     returns -1

History:

This function first appeared in EPIC3pre7.