here is my code for copying files from my downloads folder. It only copies one and not all. I'd like it to copy all the readme files so when it looks for the files it's not case sensitive:
from pathlib import Path import os import shutil os.chdir(os.path.abspath(os.path.dirname(__name__))) def activities(): homepath = Path('.') dir_src = ('~/Downloads') for filename in os.listdir(dir_src): if filename.startswith('Readme'): shutil.copyfile( dir_src + filename, homepath) activities()
