[MERGE] osutils.copy_tree helper function
John Arbash Meinel
john at arbash-meinel.com
Mon Aug 7 18:56:39 BST 2006
In writing some code, I wanted the ability to recursively copy a bunch
of directories (like shutil.copy_tree()), but I wanted the ability to
use a custom function per file. (Specifically, I wanted to optionally
hard link files, rather than copying their contents).
So I wrote one, which is a wrapper around osutils.walkdirs().
I'm using it to improve the benchmark suite a bit, so that we can cache
some of the intermediate steps (like creating a kernel like tree with a
single commit). This makes the benchmarks a little bit easier to run,
since you don't have as much time spent just preparing the benchmark.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osutils-copy_tree.patch
Type: text/x-patch
Size: 8578 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060807/e83543af/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060807/e83543af/attachment.pgp
More information about the bazaar
mailing list