Giter VIP home page Giter VIP logo

Comments (5)

sergi avatar sergi commented on June 5, 2024

Hi Bruno,

Yes, the ls command is using stat, but it is trivial to use a passive
'list' command If 'stat' is not supported. I will add it as soon as I
am back from holidays.

Take care,

Sergi

On Aug 15, 2011, at 3:21 PM, brunoqc
[email protected]
wrote:

It seems jsftp can't list files if the server doesn't supports the 'STAT' command.

While trying to do a "ftp.ls" I got :

$ node app.js
FTP socket connected

feat
500 'FEAT': command not understood.

user xp775
331 Password required for xp775.

PASS ****
230 User xp775 logged in.

stat /
502 STAT command not implemented.

/home/me/node-ftp/app.js:25
if (err) throw err;
^
502 STAT command not implemented.
$

Reply to this email directly or view it on GitHub:
#2

from jsftp.

sergi avatar sergi commented on June 5, 2024

Also, do you happen to know what kind of server are you testing against? (name and version)

Thanks!

from jsftp.

bbigras avatar bbigras commented on June 5, 2024

HCLFTPD 7.0.0.0. It must be a proprietary Ftp server. It's on a physical machine.

Here's the data from Wireshark when I do a regular file listing with FileZilla :

220  FTP server (Hummingbird Ltd. (HCLFTPD) Version 7.0.0.0) ready.
USER username
331 Password required for username.
PASS password
230 User username logged in.
CWD C:\path
250 CWD command successful.
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (10,1,11,33,8,217)
LIST
150 Opening data connection for *.* (10.1.11.84,2581) (0 bytes).
226 Transfer complete.

Here's the data from the second connection (file listing) :

drwx------  1          user          group          0 Aug 22 09:02 .
drwx------  1          user          group          0 Aug 22 09:02 ..
-rwx------  1          user          group      28348 Aug 11 10:39 file1
-rwx------  1          user          group      82020 Aug 11 10:39 file2
-rwx------  1          user          group      65312 Aug 11 10:39 file3

I might be able to help with this and also with issue #3 if you tell me what needs to be done.

from jsftp.

sergi avatar sergi commented on June 5, 2024

Nice, this will be really useful. I am back from holidays tomorrow and
ill solve it then. I have an idea for fixing it already.

Thanks!

Op Aug 22, 2011 om 3:57 PM heeft brunoqc
[email protected]
het volgende geschreven:

HCLFTPD 7.0.0.0. It must be a proprietary Ftp server. It's on a physical machine.

Here's the data from Wireshark when I do a regular file listing with FileZilla :

220 FTP server (Hummingbird Ltd. (HCLFTPD) Version 7.0.0.0) ready.
USER username
331 Password required for username.
PASS password
230 User username logged in.
CWD C:\path
250 CWD command successful.
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (10,1,11,33,8,217)
LIST
150 Opening data connection for . (10.1.11.84,2581) (0 bytes).
226 Transfer complete.

Here's the data from the second connection (file listing) :

drwx------ 1 user group 0 Aug 22 09:02 .
drwx------ 1 user group 0 Aug 22 09:02 ..
-rwx------ 1 user group 28348 Aug 11 10:39 file1
-rwx------ 1 user group 82020 Aug 11 10:39 file2
-rwx------ 1 user group 65312 Aug 11 10:39 file3

I might be able to help with this and also with issue #3 if you tell me what needs to be done.

Reply to this email directly or view it on GitHub:
#2 (comment)

from jsftp.

sergi avatar sergi commented on June 5, 2024

Fixed in 0.1

from jsftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.