#18681045 : fixed a bug that getting list for ftp setting did not work on windows server

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7288 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-02-06 15:21:56 +00:00
parent 00ffe1175b
commit 256647c2d0

View file

@ -60,6 +60,7 @@
if($oFtp->ftp_connect($ftp_info->ftp_host, $ftp_info->ftp_port)){
if($oFtp->ftp_login($ftp_info->ftp_user, $ftp_info->ftp_password)) {
$_list = $oFtp->ftp_rawlist($this->pwd);
debugPrint($_list);
$oFtp->ftp_quit();
}
else
@ -71,7 +72,7 @@
if($_list){
foreach($_list as $k => $v){
if(strpos($v,'d') === 0) $list[] = substr(strrchr($v,' '),1) . '/';
if(strpos($v,'d') === 0 || strpos($v, '<DIR>')) $list[] = substr(strrchr($v,' '),1) . '/';
}
}
$this->add('list', $list);