JFolder: Difference between revisions
From Joomla! Documentation
No edit summary |
m clean up |
||
| Line 1: | Line 1: | ||
{{subst:Description:JFolder}} | |||
{{Description:JFolder}} | |||
===Defined in=== | ===Defined in=== | ||
| Line 43: | Line 40: | ||
<source lang="php">jimport( 'joomla.filesystem.folder' );</source> | <source lang="php">jimport( 'joomla.filesystem.folder' );</source> | ||
{{subst:SeeAlso:JFolder}} | |||
{{SeeAlso:JFolder}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 13:20, 24 March 2017
{{subst:Description:JFolder}}
Defined in
libraries/joomla/filesystem/folder.php
Methods
| Method name | Description |
|---|---|
| copy | Copy a folder. |
| create | Create a folder -- and all necessary parent folders. |
| delete | Delete a folder. |
| move | Moves a folder. |
| exists | Wrapper for the standard file_exists function |
| files | Utility function to read the files in a folder. |
| folders | Utility function to read the folders in a folder. |
| listFolderTree | Lists folder in format suitable for tree display. |
| makeSafe | Makes path name safe to use. |
Importing
jimport( 'joomla.filesystem.folder' );
{{subst:SeeAlso:JFolder}}
Examples
<CodeExamplesForm />