Skip to content

folder.create ignore_if_exists parameter is not respected #19

@skamensky

Description

@skamensky

I haven't had time to dig into why, but when using

client.folder("/Shared/Temp/").create(ignore_if_exists=True)
An AttributeError or egnyte.exc.RequestError is thrown if the folder exists already.

From a quick glimpse it looks like the error is caused by this line not properly checking if the error that should be ignored is present in the request result:

result = any((errors[:len(ignored)] == ignored) for ignored in self.ignored_errors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions