I need to copy a TXT file daily from one folder to another, but the file is renamed according to the date, the end after the "_"
always changes with the date value.
Ex: _20181205.txt
, _20181206.txt
, _20190101.txt
.
Below is the code where I left off.
shutil.copy('/8.Relatórios/03. SAM/01_TemposMédios_20181205.txt','C:/Users/br0151338587/Desktop/laboratorioPython')
Would anyone know how I can resolve this?
Note: the 1st url is from a network folder, then I deleted the start for
make reading easier.