I want to copy some files using python. Can someone tell me how to use the shutil.copy() command properly? thanks
mahela007 6 Posting Whiz in Training
Recommended Answers
Jump to PostExpanding on jrcagle post:
import shutil source_file = r"C:\Python25\Atest\Bull\shutil_test.txt" destination = r"C:\Python25\Atest\Bull\Test" # this copies the source file to the destination directory # the destination directory has to exist # if the filename already exists there, it will be overwritten # access time and last modification time …
All 2 Replies
jrcagle 77 Practically a Master Poster
Ene Uran 638 Posting Virtuoso
iamthwee commented: love the paths! +18
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.