But again no success achieved!
In FileZilla:
|Estado: |Conectando 192.168.5.101:21…|
|—|—|
|Estado: |Conexão estabelecida, esperando mensagem de boas-vindas…|
|Estado: |Servidor sem segurança, não suporta FTP sobre TLS.|
|Estado: |O servidor não suporta caracteres que não sejam ASCII.|
|Estado: |Identificado|
|Estado: |Obtendo lista de pastas…|
|Comando: |PWD|
|Resposta: |257 / is your current directory|
|Comando: |TYPE I|
|Resposta: |200 TYPE is now 8-bit binary|
|Comando: |PASV|
|Resposta: |500 Unknown command|
|Comando: |PORT 192,168,5,119,217,224|
|Resposta: |200 PORT command successful|
|Comando: |MLSD|
|Resposta: |150 Accepted data connection|
|Resposta: |550 Can’t open directory /|
|Erro: |Falha na obtenção da lista de pastas|
In Serial Monitor:
AUTH TLS
USER: 500 Unknown command
AUTH SSL
USER: 500 Unknown command
USER base
PASS dados
PWD
TYPE I
PASV
500 Unknown command
PORT 192,168,5,119,217,224
MLSD
Using the peterus/ESP-FTP-Server-Lib library works, but it’s unintuitive for the FTP client because the default sketch does not populalate the / directory. When the code does
(I commented out all the SD code in my case), you have to access the sub-filesystems by their explicit paths, so e.g., /SPIFFS. With that, FileZilla shows me the contents of the SPIFFS partition that I uploaded to the microcontroller previously.
I’ve tried it first commenting out “SD” and then with both SD and SPIFFS enabled. But it shows a strange behavior and I can’t be sure whether it happens in FileZilla or in ESP32 FTP filesystem itself.
The problem is that FileZilla isn’t able to step back opened folders. I mean, for example, when /SD/Teste04 folder is opened, like this:
I can’t go back to /SD folder. It reports an error:
I guess the issue might be in ESP32 FTP itself, because FileZilla delivers “CWB /SD” command and ESP32 answers “/sd/Teste04/SD does not exist”.
The only solution I found so far is to reconnect, but with preset remote folder: