I have been reading through the "python library reference" with no luck finding the module needed to copy a file. Any help would be appreciated.

the shutil module seems to be what I needed.
shutil.copy(file,destination)

For file copy shutil.copy2( sourcefile, destinationfile)
is preferred, since it retains the last access time and last modification time of the file.

thank you for the suggestion :-)

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.