This is my first attempt at writing code that moves files at the end of the day, from my local work folder to an network archive.
The program works but, any tips, tricks, or ideas to make this code better would be most appreciated.
import shutil, os, datetime, time, sys
os.system('TASKKILL /F /IM FlashRen.exe')
newFolderName = datetime.datetime.now()
newFolder = newFolderName.strftime('%m%d%Y')
src = ('C:\\AEC Work\\' + newFolder)
dst = ('\\\qnap01\\Data Service\\AARON\\' +
newFolderName.strftime('%Y\\') +
newFolderName.strftime('%m. %B\\').upper() + newFolder)
for file in os.listdir(src):
src_file = os.path.join(src, file)
dst_file = os.path.join(dst, file)
shutil.move(src, dst)