Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File listing returns an empty object with Proftpd #3

Closed
bbigras opened this issue Aug 22, 2011 · 3 comments
Closed

File listing returns an empty object with Proftpd #3

bbigras opened this issue Aug 22, 2011 · 3 comments

Comments

@bbigras
Copy link
Contributor

bbigras commented Aug 22, 2011

Data outputs [] when I try to get a listing from a Proftpd server.

Here's the data I got:

stat /test
211-Status of /test:
211-drwxr-x---   2 user group      4096 Aug 22 03:45 .
211-drwxr-x---   5 user group      4096 Aug 22 03:45 ..
211--rw-r-----   1 user group         0 Aug 22 03:45 test1
211--rw-r-----   1 user group         0 Aug 22 03:45 test2
211--rw-r-----   1 user group         0 Aug 22 03:45 test3
211 End of status
@sergi
Copy link
Owner

sergi commented Aug 24, 2011

I see what the problem is. This output is not correct...is this the raw output from the server? In this output the command code '211' is followed directly by a dash, which indicates that what follows is a multiline message from the server. There should be a space instead of a dash. If this is the raw output of proftpd (which is very strange), this kind of server should have its own parser. Please confirm that this is exactly what the server returns.

Thanks!

@bbigras
Copy link
Contributor Author

bbigras commented Aug 25, 2011

From Wireshark :

feat
220 FTP Server Ready
211-Features:
 LANG en
 MDTM
 UTF8
 REST STREAM
 SIZE
211 End
user userName
331 Password required for userName
pass password
230-6 connections maximum on this class,
230-Have a nice day ;)
230 Welcome on AlternC, userName
stat /test
211-Status of /www/userName/test:
211-drwxr-x---   2 userName alternc      4096 Aug 22 03:45 .
211-drwxr-x---   5 userName alternc      4096 Aug 22 03:45 ..
211--rw-r-----   1 userName alternc         0 Aug 22 03:45 test1
211--rw-r-----   1 userName alternc         0 Aug 22 03:45 test2
211--rw-r-----   1 userName alternc         0 Aug 22 03:45 test3
211 End of status

@sergi sergi closed this as completed in 6752c13 Aug 25, 2011
@bbigras
Copy link
Contributor Author

bbigras commented Aug 26, 2011

It works indeed. Thanks!

Ps : You may have forgotten to push 0.1.2 to npm.

sergi pushed a commit that referenced this issue Nov 20, 2012
Fix execution of the custom `onConnect` handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants