mscdex / node-ftp

An FTP client module for node.js
MIT License
1.13k stars 243 forks source link

Filename invalid for filename starting with number #233

Open matthewgillespie opened 5 years ago

matthewgillespie commented 5 years ago

I am using the put command to place a file in a specified directory.

Failing Filename: 3 - data - 12-12-2018.csv Passing Filename: test_3 - data - 12-12-2018.csv

Error Message: { Error: Filename invalid at makeError (\node_modules\ftp\lib\connection.js:1067:13) at Parser. (\node_modules\ftp\lib\connection.js:113:25) at emitTwo (events.js:126:13) at Parser.emit (events.js:214:7) at Parser._write (\node_modules\ftp\lib\parser.js:59:10) at doWrite (_stream_writable.js:387:12) at writeOrBuffer (_stream_writable.js:373:5) at Parser.Writable.write (_stream_writable.js:290:11) at Socket.ondata (\node_modules\ftp\lib\connection.js:273:20) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:594:20) code: 550 } } reason: { Error: Filename invalid at makeError (\node_modules\ftp\lib\connection.js:1067:13) at Parser. (\node_modules\ftp\lib\connection.js:113:25) at emitTwo (events.js:126:13) at Parser.emit (events.js:214:7) at Parser._write (\node_modules\ftp\lib\parser.js:59:10) at doWrite (_stream_writable.js:387:12) at writeOrBuffer (_stream_writable.js:373:5) at Parser.Writable.write (_stream_writable.js:290:11) at Socket.ondata (\node_modules\ftp\lib\connection.js:273:20) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at addChunk (_stream_readable.js:263:12) at readableAddChunk (_stream_readable.js:250:11) at Socket.Readable.push (_stream_readable.js:208:10) at TCP.onread (net.js:594:20) code: 550 }