mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
- nlist() and rawlist() were switched
git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@101 21d32557-59b3-4da0-833f-c5933fad653e
This commit is contained in:
parent
95153d6d59
commit
868bcbd159
@ -48,7 +48,7 @@
|
||||
* @author Jim Wigginton <terrafrost@php.net>
|
||||
* @copyright MMIX Jim Wigginton
|
||||
* @license http://www.gnu.org/licenses/lgpl.txt
|
||||
* @version $Id: SFTP.php,v 1.20 2010-04-08 14:41:07 terrafrost Exp $
|
||||
* @version $Id: SFTP.php,v 1.21 2010-04-09 02:31:34 terrafrost Exp $
|
||||
* @link http://phpseclib.sourceforge.net
|
||||
*/
|
||||
|
||||
@ -643,7 +643,7 @@ class Net_SFTP extends Net_SSH2 {
|
||||
extract(unpack('Nlength', $this->_string_shift($response, 4)));
|
||||
$this->_string_shift($response, $length); // SFTPv4+ drop this field - the "longname" field
|
||||
$attributes = $this->_parseAttributes($response); // we also don't care about the attributes
|
||||
if ($raw) {
|
||||
if (!$raw) {
|
||||
$contents[] = $shortname;
|
||||
} else {
|
||||
$contents[$shortname] = $attributes;
|
||||
|
Loading…
Reference in New Issue
Block a user