====== exists ====== {#JAPI Joomla.Framework FileSystem JFile::exists #} This function is a wrapper for the standard PHP [[http://www.php.net/file-exists|file_exists]] function. If the file exists, the function returns true. Otherwise, it returns false. ===== Syntax ===== boolean exists ( **$file** ) | **$file** | string | is a string that contains the file path that is to be checked. | ===== Examples ===== Example: This example checks if a file exists. if (JFile::exists( 'images/stories/clock.jpg' )) { echo "

File exists!

"; } else { echo "

File does not exist!

"; }
---- ~~DISCUSSION~~