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?
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to