Nov-10-2019, 08:35 AM
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.
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.