Python Forum

Full Version: transfering files between server locations using ftplib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I have a logging application that uploads hourly files to an ftp server (remotely using an Arduino). I then use a python script (once per day) that downloads the hr files from the server, appends them to a day file and uploads this file to an archive directory on the same server. This works fine but seems overly complicated. Is there a better way, for example is it possible to transfer the hour files from one server location and append them to the day file in an archive directory on the same server without the intermediate step of down loading them to the local hard-disk and processing them etc. I am using ftplib under python3.

Any help/ideas is much appreciated.

Cheers.
Anybody have any ideas on this?

Cheers.