API16

JFile/exists

From Joomla! Documentation

< API16:JFile
Revision as of 17:38, 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<nowiki...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API16" 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:JFile/exists

Syntax[edit]

exists($file)
Parameter Name Default Value Description
$file $file File path

Returns[edit]

boolean True if path is a file

Defined in[edit]

libraries/joomla/filesystem/file.php

Importing[edit]

jimport( 'joomla.filesystem.file' );

Source Body[edit]

function exists($file)
{
        return is_file(JPath::clean($file));
}

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

Examples[edit]

<CodeExamplesForm />