JFolder/exists
From Joomla! Documentation
< API15:JFolderRevision 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...)
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...)
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
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 />