API15

JFolder/exists

From Joomla! Documentation

< API15:JFolder
Revision as of 17:20, 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)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Wrapper for the standard file_exists function

[Edit Descripton]

Template:Description:JFolder/exists

Syntax[edit]

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

Returns[edit]

boolean True if path is a folder

Defined in[edit]

libraries/joomla/filesystem/folder.php

Importing[edit]

jimport( 'joomla.filesystem.folder' );

Source Body[edit]

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

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

Examples[edit]

<CodeExamplesForm />