[PATCH] osutils.rmtree + test

Alexander Belchenko bialix at ukr.net
Sun Jan 22 22:02:27 GMT 2006


Aaron Bentley пишет:
> Alexander Belchenko wrote:
> | Attached patch helps to remove read-only files and directories on win32.
> | Pleae, review this patch.
> +1
> 
> This is a good start, but I think we can go further; I think we should
> provide an "always-works" version of rmtree in osutils, and start using
> it everywhere.

Here is implementation of osutils.rmtree and test for this function.

First part of patch (rmtree-test.diff) provide rmtree stub and test.
Second part of patch (rmtree-osutils.diff) provide rmtree implementation 
for windows that can delete readonly files and dirs. Also this patch 
change all internal usage of shutil.rmtree to osutils.rmtree.

--
Alexander
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rmtree-test.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060123/932f4844/attachment.diff 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rmtree-osutils.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060123/932f4844/attachment-0001.diff 


More information about the bazaar mailing list