Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better naming

  • Loading branch information...
commit 6ce72cee501ccc84ecc8b72783624f57504abcb4 1 parent dc5d1ac
@sergi authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/jsftp.js
View
8 lib/jsftp.js
@@ -514,7 +514,7 @@ Ftp.getPasvPort = function(text) {
this.getGetSocket = function(path, callback) {
var self = this;
- this._streamingPasv(function(err, socket) {
+ this.getPasvSocket(function(err, socket) {
if (err) return callback(err);
if (socket.pause) socket.pause();
self._enqueueCmd("retr " + path, function(err, res) {
@@ -542,7 +542,7 @@ Ftp.getPasvPort = function(text) {
this.getPutSocket = function(path, callback) {
var self = this;
- this._streamingPasv(function(err, socket) {
+ this.getPasvSocket(function(err, socket) {
if (err) return callback(err);
var hadErr;
@@ -565,7 +565,7 @@ Ftp.getPasvPort = function(text) {
});
};
- this._streamingPasv = function(callback) {
+ this.getPasvSocket = function(callback) {
var self = this;
var doPasv = function(err, res) {
if (err || !res || res.code !== 227) {
@@ -608,7 +608,7 @@ Ftp.getPasvPort = function(text) {
// If there is a passive call happening, we put the requested passive
// call in the passive call buffer, to be executed later.
var fn = function() {
- this._streamingPasv(function(err, socket) {
+ this.getPasvSocket(function(err, socket) {
if (err) return callback(err);
// Executes the next passive call, if there are any.
Please sign in to comment.
Something went wrong with that request. Please try again.