Comments (5)
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 connectedfeat
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.
Also, do you happen to know what kind of server are you testing against? (name and version)
Thanks!
from jsftp.
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.
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 file3I 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.
Fixed in 0.1
from jsftp.
Related Issues (20)
- Ftp.features is undefined when auth is not called
- list returns wrong filename if filename starts with a space HOT 1
- raw command of send was failed
- Documentation May Be Wrong HOT 1
- Can i sync ftp folder with local folder?
- ftp.get() not working correctly HOT 7
- Browse directories
- Ftp.put can only upload empty files on node10.16.0. If there is content, call error = = = false, but there is no file on the server
- jsftp ls error
- TypeError: this.socket.on is not a function at Ftp._createSocket HOT 3
- How to use 'rmda' command HOT 3
- not support node v10.x (fault upload, download at CentOS8) HOT 2
- Is it possible to use put function for directory
- HTTP proxy
- Ftp.get(remotePath, localPath, callback) creating files with size 0
- DeprecationWarning: Invalid 'main' field in '/workspaces/myblog/node_modules/jsftp/package.json' of './jsftp.js'.
- .rename 501 Bad sequence of commands fix
- FTP raw mkd HOT 1
- Invalid 'main' field in 'D:\hexo\blog\node_modules\jsftp\package.json'
- How to multiple get files [solution]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsftp.