Time not Updating when script runs
Hello. I have a automated script that transfers files from my server to my PC. I have a python file that zips all my files and puts them in a folder in my server that my script then finds and moves those files.
Every file has the time as a way to tell them apart Ex:
So to automate this I thought I would use TIMESTAMP. so in my script I have:
However when I was testing everything I noticed the time did not change from when I last worked on it (also the day I added it). Anyone know why or if there's a better way.
I'm using FTP and I'm on Windows 11.
Every file has the time as a way to tell them apart Ex:
afile-2023-08-15.zip
.
So to automate this I thought I would use TIMESTAMP. so in my script I have:
afile-%TIMESTAMP#yyyy-mm-dd%.zip
However when I was testing everything I noticed the time did not change from when I last worked on it (also the day I added it). Anyone know why or if there's a better way.
I'm using FTP and I'm on Windows 11.