JFolder: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/filesystem/folder.php | libraries/joomla/filesystem/folder.php | ||
| Line 41: | Line 39: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFolder | category=JFolder | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 00:38, 25 March 2017
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' );
Examples
Code Examples