def clone_dir_with_timestap(orig_dir_path):
"""Copy a folder into the same directory and append a timestamp."""
new_dir = create_dir(append_timestamp(orig_dir_path))
try:
du.copy_tree(orig_dir_path, new_dir)
except Exception, e:
wl_log.error("Error while cloning the dir with timestamp" + str(e))
finally:
return new_dir
评论列表
文章目录