mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
FTP CWD fixes from DD32. see #6245
git-svn-id: https://develop.svn.wordpress.org/trunk@7327 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user