parseListing

Navigation:  Development > Function Reference > Module > Ftp >

parseListing

Previous pageReturn to chapter overviewNext page

Parse a Row List Line.
 

App::Module('Ftp')->parseListing(Line);
 

 

Parameter

Type

Description

String Line

Mandatory

String line of Raw List

 

See bellow examples:

 

$Ftp = App::Module('Ftp');
$Ftp->Connect('ftp.example.com');
$result = $Ftp->Login('username','********');
$rawList = $Ftp->rawList();
$list = $Ftp->parseListing($rawList[0]);
pre($list);

 

/*
Return like:
Array
(
    [type] => d
    [perms] => 493
    [inode] => 7
    [owner] => 540
    [group] => 540
    [size] => 4096
    [date] => Mar 20 12:22
    [name] => DELIVERY REPORTS
)
*/