How can I get a MLSD listing via "Enter custom command..." (that is, a raw command)? If I type MLSD after connecting, I get:
503 Bad sequence of commands.
But if I type MLST, it works as expected. Also, note that MLSD works without issue when I'm normally browsing different directories (as is shown in the message log). It's only when I manually enter it, it fails.
The reason I want to accomplish this, though, is so I can use the command with the PHP ftp_raw function, so I don't have to use the ftp_rawlist function, which uses the FTP LIST command (not MLSD).
I'd appreciate any suggestions.
Getting MLSD listing via "Enter custom command..."?
Moderator: Project members
Re: Getting MLSD listing via "Enter custom command..."?
You have to send a correctly formatted PORT or PASV command before MLSD. And your script must receive the data on the given port, then.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Getting MLSD listing via "Enter custom command..."?
What do you mean by "correctly formatted"?
I actually tried, in FileZilla Client, to first do PASV and then MLSD (separately in "Enter custom command..."), but got the following:
425 Can't open data connection.
Is it even possible to do MLSD via "Enter custom command..." in FileZilla and get the proper responce?
I actually tried, in FileZilla Client, to first do PASV and then MLSD (separately in "Enter custom command..."), but got the following:
425 Can't open data connection.
Is it even possible to do MLSD via "Enter custom command..." in FileZilla and get the proper responce?
Re: Getting MLSD listing via "Enter custom command..."?
When you issue the PASV command, the server responds with it's IP and a port. Read Network Configuration to learn about the proper calculation of the port. Then you must open a seperate connection to this port to receive the listing (after MLSD).
No. You could probably do it with two Telnet sessions.Is it even possible to do MLSD via "Enter custom command..." in FileZilla and get the proper responce?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
Re: Getting MLSD listing via "Enter custom command..."?
I used that a bunch of times, works but no fun.No. You could probably do it with two Telnet sessions.
Re: Getting MLSD listing via "Enter custom command..."?
Wait, we ought to have fun here?
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org