the backend has many logs or files distributed on hundreds of servers. You want to use flask to build a service and request to input information such as ip, path and file name of the backend service, and use the service provided by flask to obtain the backend files, instead of directly connecting to the backend server through ftp.
the way you can imagine is to first get the back-end file to the flask server through ftplib, and then transfer the back-end file to the client using flask"s send_from_directory, but this will cause the file to land on the flask once more. Do you have a more efficient solution?
Thank you