Here is the last version of my FTP server:https://mega.co.nz/#!C5gQHKiR!JcfZ6RoQrLHpvcu0D59IlDmkg4b3c4x7bKqgmWRq8GA
It is much more complete than the previous version.
It now accept clients in both active
Here is the list of recognized commands: USER, PASS
CDUP, CWD, QUIT
MODE, STRU, TYPE
LIST, MLSD, NLST
And an additional command SITE FREE
that send the amount of free space in the SD card and his total capacity.
The library is divided into two classes. One handle the ftp server functions: FtpServer
. The other handle the calls to the SdFat library: SdList
For this version, I abandoned the use of long file names, and the class SdList can seem superfluous but it will facilitate in the future a change in handling of file names (I am working on that).
You must care of not delete or rename
a file that has a long name because the SdFat library does not handle it and this would result in orphan directory entries.
The server always works fine with client FTP Rush
I still do not know how to solve the problem of FileZila
with RETR and STOR.
It works well also with gFTP
And a second Arduino
can connect to Ftp Server running the sketch of SurferTim. You can download it at http://playground.arduino.cc/Code/FTP
As always I would appreciate remarks, suggestions, testing