Looking at the trace, it's because it tries to force unlink, which won't work on a directory. Should we check if it's a directory and shutil.rmtree if so?
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1253855 Title: Click hooks should be able to apply to directories recursively To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/click/+bug/1253855/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs