I'm trying to write an FTP server in Java and have the basic functionality down, but I can't figure out or find any information on the LIST
command.
LIST -a
sends a list of files like
drwxrwxrwx 1 stefan stefan 0 Jan 1 1970 personaluploads
-rwxrwxrwx 1 stefan stefan 0 Jan 1 1970 serverflags.txt
-rwxrwxrwx 1 stefan stefan 0 Jan 1 1970 serveroptions.txt
-rwxrwxrwx 1 stefan stefan 0 Jan 1 1970 levels_npcserver.txt
over the data connection.
What am I supposed to return with just LIST
? Do I send it over the data connection or the control connection?
Thanks for the help.