Comparing version 4.2.1 to 4.2.2
@@ -0,1 +1,6 @@ | ||
#### 4.2.2 | ||
- Fix put directory for long paths | ||
- Add tests for long paths in test suite | ||
#### 4.2.1 | ||
@@ -2,0 +7,0 @@ |
@@ -384,6 +384,7 @@ 'use strict'; | ||
var config = Helpers.normalizePutDirectoryConfig(givenConfig); | ||
var files = (yield (0, _sbScandir2.default)(localDirectory, config.recursive, config.validate)).map(function (item) { | ||
return _path2.default.relative(localDirectory, item); | ||
var files = (yield (0, _sbScandir2.default)(localDirectory, config.recursive, config.validate)).map(function (i) { | ||
return _path2.default.relative(localDirectory, i); | ||
}); | ||
var directoriesCreated = new Set(); | ||
var directoriesQueue = Promise.resolve(); | ||
@@ -397,4 +398,7 @@ // eslint-disable-next-line arrow-parens | ||
if (!directoriesCreated.has(remoteFileDirectory)) { | ||
yield _this4.mkdir(remoteFileDirectory, 'sftp', sftp); | ||
directoriesCreated.add(remoteFileDirectory); | ||
directoriesQueue = directoriesQueue.then(function () { | ||
return _this4.mkdir(remoteFileDirectory, 'sftp', sftp); | ||
}); | ||
yield directoriesQueue; | ||
} | ||
@@ -401,0 +405,0 @@ try { |
{ | ||
"name": "node-ssh", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "SS2 with Promises", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33092
517