git-svn-id: https://develop.svn.wordpress.org/trunk@14120 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c7c442fce0
commit
73da12c509
@ -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
Block a user