implement copy_dir with a one-liner.

This commit is contained in:
Barış Metin
2005-07-02 01:13:45 +00:00
parent 9b7c437709
commit d37e6cce66
+1 -1
View File
@@ -192,7 +192,7 @@ def get_file_hashes(top, excludePrefixes=None, removePrefix=None):
def copy_dir(src, dest):
"""copy source dir to destination dir recursively"""
raise UtilError("not implemented")
shutil.copytree(src, dest)
def sha1_file(filename):
"""calculate sha1 hash of filename"""