Import/Export ERPNext with FTP server

Hi. Guys.
I have a project. I want to import file .csv from FTP server into ERPNext and export file .csv from ERPNext to FTP server. I want it Can you share for me your solution.

@JackLe

You can write a script to use the FTP credentials and Frappe API to automate import / export.

Check the data_import_tool.js (hint: use the GitHub file finder) to find the API end point.

Thanks,
Anand.