-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
Description
Hello there,
I've encounter a compatibility break by switching from Node 6.2.2 to Node 6.3.0 (or higher, also try 6.3.1, 6.4.0, 6.5.0). I'm doing a ls command and my program is not detecting the file type (at least for directories). Here is my code:
let ftpConnection = new SftpClient(config.dataSourceOptions.sftpOptions)
return ftpConnection.ls(config.dataSourceOptions.sftpOptions.directory)
.then(function(result)
{
console.log(result)
})Result with Node 6.2.2:
{
path: "path/to/directory",
type: "directory",
attrs: {
// ...
},
entries: [
// ...
]
}
Result with Node >= 6.3.0
{
path: "path/to/directory",
type: "other",
attrs: {
// ...
}
}
The directory type is not detected anymore. This is embarassing because I can't iterate through the "entry" option.
Now, I don't know if this is a (non-wanted) regression from Node or if it comes from this lib using deprecated code...
Thanks for your help.