FTP CWD fixes from DD32. see #6245

git-svn-id: http://svn.automattic.com/wordpress/trunk@7327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-03-16 09:49:10 +00:00
parent 78c365c7cd
commit 568d64e73e
4 changed files with 17 additions and 11 deletions
@@ -176,7 +176,10 @@ class WP_Filesystem_ftpsockets{
}
function cwd(){
return $this->ftp->pwd();
$cwd = $this->ftp->pwd();
if( $cwd )
$cwd = trailingslashit($cwd);
return $cwd;
}
function chdir($file){
@@ -388,8 +391,7 @@ class WP_Filesystem_ftpsockets{
} else {
$limitFile = false;
}
//if( ! $this->is_dir($path) )
// return false;
$list = $this->ftp->dirlist($path);
if( ! $list )
return false;