nList

Navigation:  Development > Function Reference > Module > Ftp >

nList

Previous pageReturn to chapter overviewNext page

Return list of file in an array.

 

App::Module('Ftp')->mList([Path]);
 

 

Parameter

Type

Description

Path

Optional

Directory path. If path is not define then return list of current directory.

 

See bellow examples:

 
$list = $Ftp->mList();
 
/*
Array
(
   [0] => 0 REPORTS 0
   [1] => 08-04-2013
   [2] => Abraham
   [3] => Amma
   [4] => Amey
   [5] => B2B_IN
   [6] => B2B_OUT
   [7] => BEDESH
   [8] => BILA CPU
   [9] => BRANCH CODE ALL.pdf
   [10] => Bad Debt Recovery  
)
*/