[Tutor] Copying Files

gagnrath at verizon.net gagnrath at verizon.net
Thu Jun 30 20:03:13 CEST 2011


I was using glob and shutil to copy logs from one location to another successfully, however, I have run into a snag when trying to copy a directory.   Not sure how to fix this.

Current Code is as follows:


for file in glob.glob("/drbd1/monitorcenter/Apps/WEB-INF/*"):	#This line is holding up the script due to copying a directory and not a single file
    shutil.copy(file, path_2_b_2)

Any ideas?


More information about the Tutor mailing list