copying files

Brian McCann Brian.McCann at viziant.net
Wed Aug 29 14:40:57 EDT 2007


Hi,
 
with the code below I set a variable TEST_HOME to a path and the variable m to a path
in my current dir. 
I have a symbolic link setting m---->lib
when I run the script I get no errors and the lib dir with its 20 files does not get copied to /v01/test_home
any help would be greatly appreciated
 
--Brian

#!/usr/bin/python
import string
import os
import sys
import errno
import shutil
import tarfile
 
TEST_HOME = "/v01/test_home"
m = "./lib"
os.system("cp -r m TEST_HOME")
#os.system("tar -cvf viziant-ingestion.tar /v01/")

 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070829/7d2d9933/attachment.html>


More information about the Python-list mailing list