getFullDirLising

Navigation:  Development > Function Reference > Helpers > Utility >

getFullDirLising

Previous pageReturn to chapter overviewNext page

Get file and folder list recursively.

 

App::Utility()->getFullDirLising(Path)

 

Parameter

Description

Path

File path

 

 

See bellow example:
 
$data = App::Utility()->getFullDirLising(App::Config()->rootDir("/component/contactus"));
pre($data);
 
/*
Return
Array
(
   [controllers] => Array
       (
           [contactus] => Array
               (
                   [0] => index.phtml
               )
 
           [0] => contactus.php
       )
 
   [css] => Array
       (
           [0] => styles.css
       )
 
   [0] => definition.xml
   [icon] => Array
       (
           [0] => logo.jpg
       )
 
   [1] => register.php
   [sitesettings] => Array
       (
           [0] => settings.xml
       )
 
)
*/