Support Joomla!

references:joomla.framework:filesystem:jfolder-exists

Table of Contents

exists

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage FileSystem Class JFolder Method exists Reference exists() Never Work in Progress

This is a wrapper for the standard PHP file_exists function. It returns true if the folder exists, false otherwise.

Syntax

boolean exists ( $path )

$path string is a string containing a folder name relative to the base folder.

Examples

Example

jimport( 'joomla.filesystem.folder' );
if (JFolder::exists( 'test1' )) {
    echo "Folder exists!";
} else {
    echo "Folder does not exist!";
}

might produce:

Results

Folder exists!

Discussion

Full name:
E-Mail:
 
references/joomla.framework/filesystem/jfolder-exists.txt (947 views) · Last modified: 2007/08/15 15:06