issue 1370 add exception, when can not read directory list with ftp

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10281 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-03-02 02:01:44 +00:00
parent 778fdc82ed
commit 9c4e57b4ec
2 changed files with 18 additions and 0 deletions

View file

@ -91,6 +91,10 @@
if(strpos($v,'d') === 0 || strpos($v, '<DIR>')) $list[] = substr(strrchr($v,' '),1) . '/';
}
}
else
{
return new Object(-1,'msg_ftp_no_directory');
}
$this->add('list', $list);
}