LIST retun

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
benkoch
500 Command not understood
Posts: 1
Joined: 2023-04-12 10:50
First name: Benjamin
Last name: Koch

LIST retun

#1 Post by benkoch » 2023-04-12 11:13

Hi everyone,

I currently have an application that is looking for a file on an FTP directory. If the file does not exist, it will be written.
However, the program expects an empty string as return if a file does not exist.

The app sends to the FTP-Server:

Code: Select all

LIST test
While test is not an existing file.

The app expects something like this:

Code: Select all

200 PORT command successful.
150 Open data connection in ASCII mode for /bin/ls.
226 Transfer complete. 0 bytes transferred. 0.00 KB/sec
But Filezilla Server responds:

Code: Select all

200 PORT command successful.
550 The file or directory could not be opened
Is there a possibility that Filezilla Server does not return 550 as a return value, but a code 226 with a string?

Benjamin

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: LIST retun

#2 Post by botg » 2023-04-12 11:17

The application you are using is relying on non-standard behavior. You need to fix your application.

Post Reply