ftpsockets fix from DD32. see #5586
git-svn-id: http://svn.automattic.com/wordpress/trunk@7171 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
24d3ee2c98
commit
12a0f3a403
|
@ -179,6 +179,10 @@ class WP_Filesystem_ftpsockets{
|
|||
return $this->ftp->pwd();
|
||||
}
|
||||
|
||||
function chdir($file){
|
||||
return $this->ftp->chdir($file);
|
||||
}
|
||||
|
||||
function chgrp($file,$group,$recursive=false){
|
||||
return false;
|
||||
}
|
||||
|
@ -325,8 +329,8 @@ class WP_Filesystem_ftpsockets{
|
|||
|
||||
function is_dir($path){
|
||||
$cwd = $this->cwd();
|
||||
if ( $this->ftp->chdir($path) ) {
|
||||
$this->ftp->chdir($cwd);
|
||||
if ( $this->chdir($path) ) {
|
||||
$this->chdir($cwd);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue