Menu

#2 missing $path in classic mkdir(), rmdir()

open
5
2006-03-12
2006-03-12
pgarner
No

In KFTP_Basic_Classic.php, line #186:

// mkdir -- Creates a directory
function mkdir($path){
if(($result=@ftp_mkdir($this->stream))===false)

$this->trigger_error('mkdir',@$php_errormsg,__FILE__,__LINE__);

return $result;
}

// rmdir -- Removes a directory
function rmdir($path){
if(($result=@ftp_rmdir($this->stream))===false)

$this->trigger_error('rmdir',@$php_errormsg,__FILE__,__LINE__);

return $result;
}

-----------

should read

@ftp_mkdir($this->stream,$path)
@ftp_rmdir($this->stream,$path)

Discussion


Log in to post a comment.