python eager
python_eager at yahoo.com
Tue Mar 21 04:26:53 EST 2006
Hi This code snippet working fine. But if change the os.listdir(\\Demo\\data") instead of os.listdir("\\Demo"): it gives error while printing the files . Please let me know what is the error. import shutil import os i=0 for file in os.listdir("\\Demo"): if os.path.splitext(file)[1] == ".py": self.writeln(file) self.writeln('<br>') i=i+1 shutil.copy(file, os.path.join('\\backup', file)) self.writeln(i,' file(s) copied') Please help regards Python Eager --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060321/4257e31c/attachment.html
|