xreef / SimpleFTPServer

A simple FTP server for Arduino, ArduinoSAMD WiFiNINA, esp8266, esp32, stm32 and Raspberry Pi Pico W

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIST shall returns file name but actually full path for STORAGE_SD

cat-in-136 opened this issue · comments

LIST shall returns file names but actually full path in case of STORAGE_TYPE == STORAGE_SD.

Expected ftp command response text:

ftp> cd foo
250 Directory changed to /foo
ftp> ls
227 Entering Passive Mode (xxx,xxx,xxx,xxx,195,89)
150 Accepted data connection to port 50009
-rw-rw-r--	1	esp32	67077	Jan 01 00:00	bar.dat
226 1 matches total

Actual ftp command response text:

ftp> cd foo
250 Directory changed to /foo
ftp> ls
227 Entering Passive Mode (xxx,xxx,xxx,xxx,195,89)
150 Accepted data connection to port 50009
-rw-rw-r--	1	esp32	67077	Jan 01 00:00	/foo/bar.dat
226 1 matches total

Thanks, @cat-in-136,
now I'm on holiday, so I can't test in all environments and core versions of your change, but when I return home I integrate your change.
Thanks again Renzo