API16

API16:JFolder/exists

From Joomla! Documentation

Revision as of 22:47, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Wrapper for the standard file_exists function <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Wrapper for the standard file_exists function

[Edit Descripton]

Template:Description:JFolder/exists

Syntax

static exists($path)
Parameter Name Default Value Description
$path Folder name relative to installation dir

Returns

boolean True if path is a folder

Defined in

libraries/joomla/filesystem/folder.php

Importing

jimport( 'joomla.filesystem.folder' );

Source Body

public static function exists($path)
{
        return is_dir(JPath::clean($path));
}

[Edit See Also] Template:SeeAlso:JFolder/exists

Examples

<CodeExamplesForm />