Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore_errors and onerror parameters are ignored in FakeShutilModule.rmtree #72

Closed
mrbean-bremen opened this issue Mar 22, 2016 · 3 comments
Labels

Comments

@mrbean-bremen
Copy link
Member

An easy fix could be something like this:

def rmtree(self, path, ignore_errors=False, onerror=None):
    try:
        self.filesystem.RemoveObject(path)
    except IOError:
        if not ignore_errors:
            if onerror:
                onerror(rmtree, path, sys.exc_info())
            raise
@mrbean-bremen
Copy link
Member Author

Reopening - the related code shall be reverted (accidental merge) and re-submitted correctly afterwards.

@jmcgeheeiv
Copy link
Contributor

Please verify whether this can be closed.

@mrbean-bremen
Copy link
Member Author

Works fine - thanks also for the corrections.
Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants