LoBo Forums

Full Version: Small modification to curl FTP module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

A small modification implemented to CURL FTP module.

1. FTP Put command to send data directly from buffer instead of File. This helps in reducing the File I/O on flash memory.

 (modified ftp_put to read from buffer instead of file)

res=curl.ftp_put_buf('ftp://loboris.eu/test/uploaded_boot.py','esp32','esp32user', buffer)

2. FTP List gets all files info from server. A provision is made to check if a single file exists in server by getting only its attributes and no file body is downloaded.
 (modified ftp_get to exclude body)


esp32/modcurl.c and esp32/libs/espcurl.c files attached. 
This is a small work and requested to verify and comment.