I'm getting the following error when trying to delete a file:
/Users/jviotti/Projects/resin/resin-plugin-watch/node_modules/ftp/lib/connection.js:484
return cb(makeError(code, 'Compression not supported'));
^
TypeError: undefined is not a function
at Object.cb (/Users/jviotti/Projects/resin/resin-plugin-watch/node_modules/ftp/lib/connection.js:484:18)
at Parser.<anonymous> (/Users/jviotti/Projects/resin/resin-plugin-watch/node_modules/ftp/lib/connection.js:113:22)
at Parser.EventEmitter.emit (events.js:98:17)
at Parser._write (/Users/jviotti/Projects/resin/resin-plugin-watch/node_modules/ftp/lib/parser.js:59:10)
at doWrite (_stream_writable.js:221:10)
at writeOrBuffer (_stream_writable.js:211:5)
at Parser.Writable.write (_stream_writable.js:180:11)
at Socket.ondata (/Users/jviotti/Projects/resin/resin-plugin-watch/node_modules/ftp/lib/connection.js:273:20)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:526:21)
I'm getting the following error when trying to delete a file:
By activating debug, I see:
As the stack trace shows, the errors happens on https://github.com/mscdex/node-ftp/blob/master/lib/connection.js#L484, which is inside the list function (https://github.com/mscdex/node-ftp/blob/master/lib/connection.js#L402).
By inspecting the arguments to
.list()
before the error is thrown I see that:However, I was unable to find where
.list()
is called with such arguments when using the.delete()
function.