API17

JFolder::files

From Joomla! Documentation

Revision as of 18:04, 10 May 2013 by JoomlaWikiBot (talk | contribs) (JoomlaWikiBot moved page JFolder::files/11.1 to API17:JFolder::files without leaving a redirect: Robot: Moved page)

The "API17" 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.

Joomla 11.1 JFolder::files[edit]

Description[edit]

Utility function to read the files in a folder.

Template:Description:JFolder::files [Edit Descripton]

public static function files (
        $path
        $filter= '.'
        $recurse=false
        $full=false
        $exclude=array('.svn'
        'CVS'
        '.DS_Store'
        '__MACOSX'
        $excludefilter=array('^\..*'
        '.*~'
)
Parameter Type Default Description
$path string The path of the folder to read.
$filter string '.' A filter for file names.
$recurse mixed false True to recursively search into sub-folders, or an integer to specify the maximum depth.
$full boolean false True to return the full path to the file.
$exclude array array('.svn', 'CVS','.DS_Store','__MACOSX') Array with names of files which should not be shown in the result.
$excludefilter array array('^\..*','.*~') Array of filter to exclude

See also[edit]

Template:SeeAlso:JFolder::files [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />