Hi,
I'm trying to copy a file in python, I have imported the shutil module
My problem is that I want to copy file in a directory beginning with a certain name. Example I have 5 file in the fodler but i want to copy all the one tat begin with journal.something How could i do that
thanks
import shutil,glob,os
os.chdir("wherefileis")
for FILE in glob.glob("journal*"):
shutil.copy(FILE, "someotherdir")