peterus / ESP-FTP-Server-Lib

MIT License
25 stars 12 forks source link

Can't open directory / #9

Closed tbaust closed 2 years ago

tbaust commented 2 years ago

I use a ESP32-Wroom-32D custom board and I'm unable to connect to the FTP service because the directory "/" is not found. This confuses the FTP client and it disconnects (Cyberduck 7.10.2)

FS& gfs = LITTLEFS;

setup() { ... ftp.addUser("admin", "admin"); ftp.addFilesystem("FS", &gfs); ftp.begin(); }

loop() { ftp.handle(); ... }

Also the windows command line tool can't open the root directory (so it seems not a client issue). Other directories work: C:>ftp -d 192.168.178.118 Verbindung mit 192.168.178.118 wurde hergestellt. 220--- Welcome to FTP Server for ESP32 --- 220--- By Peter Buchegger --- 220 -- Version 0.1 --- ---> OPTS UTF8 ON 500 not implemented Benutzer (192.168.178.118:(none)): admin ---> USER admin 331 OK. Password required Kennwort: ---> PASS admin 230 OK. ftp> LS ---> PORT 192,168,178,23,237,13 200 PORT command successful ---> LIST 150 Accepted data connection 550 Can't open directory / ftp> CD / ---> CWD / 550 Directory does not exist ftp> LS ---> PORT 192,168,178,23,237,23 200 PORT command successful ---> LIST 150 Accepted data connection 550 Can't open directory / ftp> CD FS ---> CWD FS 250 Ok. Current directory is /FS ftp> LS ---> PORT 192,168,178,23,237,33 200 PORT command successful ---> LIST 150 Accepted data connection -rw-r--r-- 1 owner group 15 Jan 01 1970 .exclude.files -rw-r--r-- 1 owner group 384 Jan 01 1970 config.json drwxr-xr-x 1 owner group 0 Jan 01 1970 i18n drwxr-xr-x 1 owner group 0 Jan 01 1970 www 226 4 matches total FTP: 251 Bytes empfangen in 0.17Sekunden 1.46KB/s ftp> bye ---> QUIT 221 Goodbye

libraries used: me-no-dev/ESP Async WebServer@^1.2.3 arduino-libraries/NTPClient @ ^3.1.0 bblanchon/ArduinoJson @ ^6.18.3 lorol/LittleFS_esp32 @ ^1.0.6 makuna/NeoPixelBus@^2.6.7 arduino-libraries/ArduinoMqttClient @ ^0.1.5 peterus/ESP-FTP-Server-Lib@^0.9.6

tbaust commented 2 years ago

solved inside my fork - please merge