git-svn-id: http://svn.automattic.com/wordpress/trunk@14120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e8c8ef08f0
commit
629432887e
|
@ -338,7 +338,8 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
|
||||||
}
|
}
|
||||||
|
|
||||||
$pwd = @ftp_pwd($this->link);
|
$pwd = @ftp_pwd($this->link);
|
||||||
$chdir = @ftp_chdir($this->link, $path);
|
if ( ! @ftp_chdir($this->link, $path) ) // Cant change to folder = folder doesnt exist
|
||||||
|
return false;
|
||||||
$list = @ftp_rawlist($this->link, '-a', false);
|
$list = @ftp_rawlist($this->link, '-a', false);
|
||||||
@ftp_chdir($this->link, $pwd);
|
@ftp_chdir($this->link, $pwd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue