#245 Rewrite koji.util.rmtree to avoid forming long paths
Merged by mikem. Opened by mikem.
mikem/koji rmtree-long-paths  into  master

Download 245.patch

Taking a hint from how rm -rf does it, we chdir down and up the tree so that we reference files simply by their base name.

Resolves: #201
https://pagure.io/koji/issue/201

As a bonus, casual testing suggests that this version is significantly faster the the old version

Old exception syntax. It could be also fixed in this patch.

Works for me correctly.

Looks good to me. :thumbsup:

rebased

Updated exception syntax, as suggested

Pull-Request has been merged by mikem

Metadata