ftpsockets fix from DD32. see #5586

git-svn-id: https://develop.svn.wordpress.org/trunk@7171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-06 18:14:58 +00:00
parent 26a14e222b
commit 4365b9da33
1 changed files with 6 additions and 2 deletions

View File

@ -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;